Improve filtering for no target

Previously, the select option label was empty that's not particularly
informative. These changes also fix the next page link behaviour for the
target parameter.
This commit is contained in:
Christopher Baines 2020-03-31 18:58:36 +01:00
parent 6ee9a674cd
commit 63d7af9340

View file

@ -185,6 +185,9 @@
(#t "on")
((? date? date)
(date->string date "~1 ~3"))
;; TODO Hardcoding none here is a bit of a hack, but it does make the
;; Next page link work for revision derivations.
("" "none")
(other other)))
(string-join
@ -231,7 +234,7 @@
target))
(define (valid-targets->options targets)
`(("" . "none")
`(("(no target)" . "none")
,@(map (lambda (target)
(cons target target))
targets)))