[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: Add the SVG extension to the badge route.
From: |
Mathieu Othacehe |
Subject: |
branch master updated: Add the SVG extension to the badge route. |
Date: |
Sun, 30 May 2021 05:31:50 -0400 |
This is an automated email from the git hooks/post-receive script.
mothacehe pushed a commit to branch master
in repository guix-cuirass.
The following commit(s) were added to refs/heads/master by this push:
new 2120276 Add the SVG extension to the badge route.
2120276 is described below
commit 21202760c0d15c99b69ef235ff129ab9cb478186
Author: Mathieu Othacehe <othacehe@gnu.org>
AuthorDate: Sun May 30 11:30:53 2021 +0200
Add the SVG extension to the badge route.
* src/cuirass/http.scm (url-handler): Turn the "/jobset/spec/badge" route
into
"/jobet/spec/badge.svg" route.
* doc/cuirass.texi (Badges): Adapt it.
---
doc/cuirass.texi | 2 +-
src/cuirass/http.scm | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/doc/cuirass.texi b/doc/cuirass.texi
index 5b89793..e1b8141 100644
--- a/doc/cuirass.texi
+++ b/doc/cuirass.texi
@@ -303,7 +303,7 @@ Cuirass is able to generate SVG badges that can be
integrated inside
your favorite forge.
@itemize
-@item @url{http://cuirass-url/jobset/spec/badge?type=0}
+@item @url{http://cuirass-url/jobset/spec/badge.svg?type=0}
Generates a badge for the @code{spec} specification. If no evaluation
could be found for the @code{spec} specification, an @code{error}
badge is generated.
diff --git a/src/cuirass/http.scm b/src/cuirass/http.scm
index 57b78e1..c4976ae 100644
--- a/src/cuirass/http.scm
+++ b/src/cuirass/http.scm
@@ -1074,7 +1074,7 @@ passed, only display JOBS targeting this SYSTEM."
,@params))
#:params params))))
- (('GET "jobset" spec "badge")
+ (('GET "jobset" spec "badge.svg")
(let* ((params (request-parameters request))
(type (and=> (assq-ref params 'type)
string->number))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: Add the SVG extension to the badge route.,
Mathieu Othacehe <=