aboutsummaryrefslogtreecommitdiff
path: root/module/output/html.scm
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@hornquist.se>2019-04-26 10:43:17 +0200
committerHugo Hörnquist <hugo@hornquist.se>2019-04-26 10:43:17 +0200
commitd0d5dd92a4065dc03626e27e78f5469bb25aeebe (patch)
treefee6e95baa1220cd0fcbff17ce0010969ae630f7 /module/output/html.scm
parentRemove weird file helper. (diff)
downloadcalp-d0d5dd92a4065dc03626e27e78f5469bb25aeebe.tar.gz
calp-d0d5dd92a4065dc03626e27e78f5469bb25aeebe.tar.xz
Made HTML day headers better.
Diffstat (limited to 'module/output/html.scm')
-rw-r--r--module/output/html.scm5
1 files changed, 3 insertions, 2 deletions
diff --git a/module/output/html.scm b/module/output/html.scm
index 851f9b54..f72122bb 100644
--- a/module/output/html.scm
+++ b/module/output/html.scm
@@ -84,8 +84,9 @@
(fix-event-widths! (date->time-utc date) (stream->list events))
`(div (@ (class "day"))
(div (@ (class "meta"))
- (span (@ (class "dayname")) ,(date->string date "~a"))
- (span (@ (class "daydate")) ,(date->string date "~Y-~m-~d")))
+ ,(let ((str (date->string date "~Y-~m-~d")))
+ `(span (@ (id ,str) (class "daydate")) ,str))
+ (span (@ (class "dayname")) ,(date->string date "~a")))
(div (@ (class "events"))
,@(map (lambda (time)
`(div (@ (class "clock "