improve client status table
This commit is contained in:
parent
01978e76d4
commit
a8e8b574fc
|
@ -171,6 +171,8 @@
|
||||||
|
|
||||||
|
|
||||||
(define (cmd-status)
|
(define (cmd-status)
|
||||||
|
(define (fmt-list lst)
|
||||||
|
(if (empty? lst) "none" (~a lst)))
|
||||||
(define projects
|
(define projects
|
||||||
(with-server-connection
|
(with-server-connection
|
||||||
(get-projects)))
|
(get-projects)))
|
||||||
|
@ -180,7 +182,7 @@
|
||||||
(project-info-name proj)
|
(project-info-name proj)
|
||||||
(format "~a%" (inexact->exact (* 100 (project-info-progress proj))))
|
(format "~a%" (inexact->exact (* 100 (project-info-progress proj))))
|
||||||
(~a (project-info-matches proj))
|
(~a (project-info-matches proj))
|
||||||
(~a (project-info-agent-state proj))))])
|
(fmt-list (project-info-agent-state proj))))])
|
||||||
(if (empty? body)
|
(if (empty? body)
|
||||||
'(("" " - no projects - " "" "" ""))
|
'(("" " - no projects - " "" "" ""))
|
||||||
body))))
|
body))))
|
||||||
|
|
Loading…
Reference in New Issue