Rework tag box
gitile/pages.scm
195 | 195 | (map (lambda (tag) (tag-box repository-name tag)) tags)))) | |
196 | 196 | ||
197 | 197 | (define (tag-box repository-name tag) | |
198 | - | (pk tag) | |
199 | 198 | (match tag | |
200 | 199 | (($ <mytag> name message target time) | |
201 | - | `(div (@ (class "tag-box")) | |
202 | - | (div (@ (class "tag")) | |
203 | - | (p (@ (class "tag-name")) | |
204 | - | (a (@ (href ,repository-name "/tree/" ,target)) ,name)) | |
205 | - | (p (span (@ (class "author"))) | |
206 | - | (span (@ (class "date")) | |
207 | - | ,(time->date-string time)))) | |
208 | - | (p ,message))))) | |
200 | + | (let ((commit (get-commit repo target))) | |
201 | + | `(div (@ (class "tag-box")) | |
202 | + | (p (img (@ (src ,(author-image (commit-author commit)))))) | |
203 | + | (div (@ (class "tag")) | |
204 | + | (p (@ (class "tag-name")) | |
205 | + | (a (@ (href ,repository-name "/tree/" ,target)) ,name)p ,message) | |
206 | + | (p ,message) | |
207 | + | (p (span (@ (class "author")) | |
208 | + | (commit-author commit)) | |
209 | + | (span (@ (class "date")) | |
210 | + | ,(time->date-string time))))))))) | |
209 | 211 | ||
210 | 212 | (define (project-commit repository-name repo ref) | |
211 | 213 | (let* ((commit (get-commit repo ref)) |