mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-26 20:01:02 +00:00
Use SVG badges instead of PNG
This commit is contained in:
parent
d406aab849
commit
88cc8d6bdf
1 changed files with 4 additions and 4 deletions
|
@ -8,12 +8,12 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
badgeSuccess = "https://img.shields.io/badge/build-success-brightgreen.png"
|
badgeSuccess = "https://img.shields.io/badge/build-success-brightgreen.svg"
|
||||||
badgeFailure = "https://img.shields.io/badge/build-failure-red.png"
|
badgeFailure = "https://img.shields.io/badge/build-failure-red.svg"
|
||||||
badgeUnknown = "https://img.shields.io/badge/build-unknown-lightgray.png"
|
badgeUnknown = "https://img.shields.io/badge/build-unknown-lightgray.svg"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Display a static badge (png format) for a specific
|
// Display a static badge (svg format) for a specific
|
||||||
// repository and an optional branch.
|
// repository and an optional branch.
|
||||||
// TODO this needs to implement basic caching
|
// TODO this needs to implement basic caching
|
||||||
func Badge(w http.ResponseWriter, r *http.Request) error {
|
func Badge(w http.ResponseWriter, r *http.Request) error {
|
||||||
|
|
Loading…
Reference in a new issue