1
0
Fork 0

Hide the `.git' suffix from projects

This commit is contained in:
Tom Willemsen 2012-09-11 22:22:35 +02:00
parent 3c72a6ffb2
commit 619d4678ba

View file

@ -50,9 +50,15 @@
"never" "never"
relative-last-update))) relative-last-update)))
(define (gitless name)
(let ((pos (string-contains name ".git")))
(if pos
(substring name 0 pos)
name)))
(define (project->row dir project) (define (project->row dir project)
`(tr `(tr
(td ,project) (td ,(gitless project))
(td ,(project-description project)) (td ,(project-description project))
(td ,(git-last-update project)) (td ,(git-last-update project))
(td ""))) (td "")))