aboutsummaryrefslogtreecommitdiff
path: root/module/calp/html/vcomponent.scm
diff options
context:
space:
mode:
Diffstat (limited to 'module/calp/html/vcomponent.scm')
-rw-r--r--module/calp/html/vcomponent.scm11
1 files changed, 6 insertions, 5 deletions
diff --git a/module/calp/html/vcomponent.scm b/module/calp/html/vcomponent.scm
index 9e70f910..27a1f994 100644
--- a/module/calp/html/vcomponent.scm
+++ b/module/calp/html/vcomponent.scm
@@ -229,7 +229,8 @@
;; Single event in side bar (text objects)
(define-public (fmt-day day)
- (let* (((date . events) day))
+ (let ((date (car day))
+ (events (cdr day)))
`(section (@ (class "text-day"))
(header (h2 ,(let ((s (date->string date
;; Header for sidebar day
@@ -265,10 +266,10 @@
`(style
,(lambda () (format #t "~:{ [data-calendar=\"~a\"] { --color: ~a; --complement: ~a }~%~}"
(map (lambda (c)
- (let* ((name (base64encode (prop c 'NAME)))
- (bg-color (prop c 'COLOR))
- (fg-color (and=> (prop c 'COLOR)
- calculate-fg-color)))
+ (let ((name (base64encode (prop c 'NAME)))
+ (bg-color (prop c 'COLOR))
+ (fg-color (and=> (prop c 'COLOR)
+ calculate-fg-color)))
(list name (or bg-color 'white) (or fg-color 'black))))
calendars)))))