Initial tags support
gitile/handler.scm
97 | 97 | ((project-name "commit" ref) | |
98 | 98 | (show (style not-yet-page project-name ref))) | |
99 | 99 | ((project-name "tags") | |
100 | - | (show (style not-yet-page project-name "-"))) | |
100 | + | (show (style (project-tags project-name (get-repo project-name)) | |
101 | + | project-name "-"))) | |
101 | 102 | (_ (not-found request))))))) |
gitile/pages.scm
28 | 28 | project-file-raw | |
29 | 29 | project-files | |
30 | 30 | project-index | |
31 | - | project-commits)) | |
31 | + | project-commits | |
32 | + | project-tags)) | |
32 | 33 | ||
33 | 34 | (define not-yet-page | |
34 | 35 | `((p "Not yet available, sorry :/"))) | |
… | |||
179 | 180 | res)) | |
180 | 181 | (list "") | |
181 | 182 | (reverse (cdr (reverse path))))))))) | |
183 | + | ||
184 | + | (define (project-tags repository-name repo) | |
185 | + | (let ((tags (get-tags repo))) | |
186 | + | (if (null? tags) | |
187 | + | `((p "This project has no tags yet.")) | |
188 | + | `((p "There are tags, but we don't know how to show them yet."))))) |