mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-23 02:11:01 +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 (
|
||||
badgeSuccess = "https://img.shields.io/badge/build-success-brightgreen.png"
|
||||
badgeFailure = "https://img.shields.io/badge/build-failure-red.png"
|
||||
badgeUnknown = "https://img.shields.io/badge/build-unknown-lightgray.png"
|
||||
badgeSuccess = "https://img.shields.io/badge/build-success-brightgreen.svg"
|
||||
badgeFailure = "https://img.shields.io/badge/build-failure-red.svg"
|
||||
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.
|
||||
// TODO this needs to implement basic caching
|
||||
func Badge(w http.ResponseWriter, r *http.Request) error {
|
||||
|
|
Loading…
Reference in a new issue