aboutsummaryrefslogtreecommitdiff
path: root/module/calp/html/view/calendar/week.scm
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2022-04-06 01:09:31 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2022-05-18 00:21:42 +0200
commitfeebf252b4a51467863ccba5d25b180548f79ef2 (patch)
treee91f6c66db75d4894d2c053a5d84d517716aff65 /module/calp/html/view/calendar/week.scm
parentPossibly marginally improve tests. (diff)
downloadcalp-feebf252b4a51467863ccba5d25b180548f79ef2.tar.gz
calp-feebf252b4a51467863ccba5d25b180548f79ef2.tar.xz
Diffstat (limited to 'module/calp/html/view/calendar/week.scm')
-rw-r--r--module/calp/html/view/calendar/week.scm7
1 files changed, 5 insertions, 2 deletions
diff --git a/module/calp/html/view/calendar/week.scm b/module/calp/html/view/calendar/week.scm
index 16337102..7d8f83d2 100644
--- a/module/calp/html/view/calendar/week.scm
+++ b/module/calp/html/view/calendar/week.scm
@@ -14,13 +14,14 @@
event-zero-length?
events-between))
:use-module ((calp html vcomponent)
- :select (make-block output-uid) )
+ :select (make-block) )
;; :use-module ((calp html components)
;; :select ())
:use-module (calp translation)
:use-module ((vcomponent util group)
:select (group-stream get-groups-between))
:use-module (ice-9 format)
+ :use-module ((vcomponent recurrence) :select (repeating?))
)
@@ -63,7 +64,9 @@
(events-between start-date end-date events))
`(popup-element
(@ (class "vevent")
- (data-uid ,(output-uid event)))))))
+ ,@(when (repeating? event)
+ `((data-instance ,(datetime->string (as-datetime (prop event 'DTSTART))))))
+ (data-uid ,(prop event 'UID)))))))
;; This template is here, instead of in (calp html calendar) since it only