aboutsummaryrefslogtreecommitdiff
path: root/module/calp/html/view/calendar/month.scm
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2021-12-10 01:49:11 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2021-12-10 01:49:11 +0100
commit1ef01481fa9e70ef688b24ffd7957b97f020bb2e (patch)
treef5762e0914bae4696b89529f6d802d49baf6c40d /module/calp/html/view/calendar/month.scm
parentMajor cleanup in calp html. (diff)
downloadcalp-1ef01481fa9e70ef688b24ffd7957b97f020bb2e.tar.gz
calp-1ef01481fa9e70ef688b24ffd7957b97f020bb2e.tar.xz
Major move from week to calendar meta-view. Also repairs month view.
Diffstat (limited to 'module/calp/html/view/calendar/month.scm')
-rw-r--r--module/calp/html/view/calendar/month.scm23
1 files changed, 19 insertions, 4 deletions
diff --git a/module/calp/html/view/calendar/month.scm b/module/calp/html/view/calendar/month.scm
index 0ac69292..0e29f5b2 100644
--- a/module/calp/html/view/calendar/month.scm
+++ b/module/calp/html/view/calendar/month.scm
@@ -11,7 +11,7 @@
:select (really-long-event?
events-between))
:use-module ((calp html vcomponent)
- :select (make-block))
+ :select (make-block output-uid))
:use-module ((vcomponent group)
:select (group-stream get-groups-between))
)
@@ -77,11 +77,26 @@
(repeating-naturals 1 7)
)))
- ;; These popups are relative the document root. Can thus be placed anywhere in the DOM.
+ ;; These popups are relative the document root.
+ ;; Can thus be placed anywhere in the DOM.
,@(for event in (stream->list
(events-between start-date end-date events))
- ((@ (calp html vcomponent) popup) event
- (string-append "popup" ((@ (calp html util) html-id) event))))
+ `(popup-element
+ (@ (class "vevent")
+ (data-uid ,(output-uid event)))))
+
+ (template
+ (@ (id "vevent-block"))
+ ;; TODO this is more or less copied verbatim from week's
+ ;; version, warts and all. Figure out what should and shouldn't
+ ;; be shared between the two.
+ (div (@ (data-calendar "unknown"))
+ (div (@ (class "event-body"))
+ (span (@ (class "repeating")))
+ (span (@ (class "summary")
+ (data-property "summary")))
+ (span (@ (class "location")
+ (data-property "location"))))))
))