Fix a couple of things on the package substitute availability page
When there's a target, render the heading neatly, and include the target parameter in the URLs.
This commit is contained in:
parent
c0679185b8
commit
27c34a9ca5
|
@ -1103,7 +1103,10 @@ figure {
|
||||||
`(div
|
`(div
|
||||||
(@ (class "col-sm-6"))
|
(@ (class "col-sm-6"))
|
||||||
(h3 (@ (style "font-family: monospace;"))
|
(h3 (@ (style "font-family: monospace;"))
|
||||||
,system ,target)
|
,system
|
||||||
|
,@(if (string-null? target)
|
||||||
|
'()
|
||||||
|
`((*ENTITY* nbsp) (*ENTITY* rarr) (*ENTITY* nbsp) ,target)))
|
||||||
(figure
|
(figure
|
||||||
(div
|
(div
|
||||||
(@ (class "figure-content"))
|
(@ (class "figure-content"))
|
||||||
|
@ -1229,7 +1232,10 @@ figure {
|
||||||
"substitutes_available_from="
|
"substitutes_available_from="
|
||||||
"substitutes_not_available_from=")
|
"substitutes_not_available_from=")
|
||||||
(number->string build-server-id)
|
(number->string build-server-id)
|
||||||
"&system=" system)))
|
"&system=" system
|
||||||
|
(if (string-null? target)
|
||||||
|
""
|
||||||
|
(string-append "&target=" target)))))
|
||||||
,(format #f "~a (~d, ~2,2f%)"
|
,(format #f "~a (~d, ~2,2f%)"
|
||||||
label
|
label
|
||||||
(or count 0)
|
(or count 0)
|
||||||
|
|
Loading…
Reference in New Issue