Only show the Compare button when it'll work
On the branch page.
This commit is contained in:
parent
9e80bda4f9
commit
82c3e8942b
1 changed files with 11 additions and 4 deletions
|
|
@ -799,7 +799,8 @@
|
|||
(tbody
|
||||
,@(map
|
||||
(match-lambda*
|
||||
(((commit date revision-exists? job-events) previous-commit)
|
||||
(((commit date revision-exists? job-events)
|
||||
(previous-commit previous-revision-exists?))
|
||||
`(tr
|
||||
(td ,date)
|
||||
(td ,@(if (string=? commit "NULL")
|
||||
|
|
@ -819,7 +820,9 @@
|
|||
(else
|
||||
'(span (@ (class "label label-default"))
|
||||
"No information yet"))))))
|
||||
,@(if previous-commit
|
||||
,@(if (and previous-commit
|
||||
revision-exists?
|
||||
previous-revision-exists?)
|
||||
`((td
|
||||
(@ (style "vertical-align: middle;")
|
||||
(rowspan "2"))
|
||||
|
|
@ -835,8 +838,12 @@
|
|||
"⇕ Compare"))))
|
||||
'()))))
|
||||
branch-commits
|
||||
(append (map first (cdr branch-commits))
|
||||
(list #f)))))))))))
|
||||
(append (map (match-lambda
|
||||
((commit date revision-exists? job-events)
|
||||
(list commit
|
||||
revision-exists?)))
|
||||
(cdr branch-commits))
|
||||
'((#f #f))))))))))))
|
||||
|
||||
|
||||
(define (view-builds stats builds)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue