dashboard update

pull/9/head
Matthew Butterick 11 years ago
parent 03a550f219
commit 521b8c77d9

@ -53,6 +53,11 @@ td {
text-align: center;
}
td.no-files {
padding: 0.4em;
}
a:hover {
background: #eee;
}

@ -149,8 +149,8 @@
text)))))
(define (make-parent-row)
(define dirs (cons "Project root"
(if (not (equal? (world:current-project-root) dashboard-dir))
(define title (string-append "Project root" (if (equal? (world:current-project-root) dashboard-dir) (format " = ~a" dashboard-dir) "")))
(define dirs (cons title (if (not (equal? (world:current-project-root) dashboard-dir))
(explode-path (find-relative-path (world:current-project-root) dashboard-dir))
null)))
(define dirlinks (cons "/" (map (λ(ps) (format "/~a/" (apply build-path ps)))
@ -193,7 +193,9 @@
(body-wrapper
`(table
,@(cons (make-parent-row)
(map make-path-row project-paths)))))
(if (not (null? project-paths))
(map make-path-row project-paths)
(list '(tr (td ((class "no-files")) "No files yet in this directory") (td) (td))))))))
(define route-dashboard (route-wrapper dashboard))

Loading…
Cancel
Save