aboutsummaryrefslogtreecommitdiff
path: root/module/calp/html/view/calendar
diff options
context:
space:
mode:
Diffstat (limited to 'module/calp/html/view/calendar')
-rw-r--r--module/calp/html/view/calendar/month.scm6
-rw-r--r--module/calp/html/view/calendar/week.scm3
2 files changed, 7 insertions, 2 deletions
diff --git a/module/calp/html/view/calendar/month.scm b/module/calp/html/view/calendar/month.scm
index a19fcdb5..d7cd24ae 100644
--- a/module/calp/html/view/calendar/month.scm
+++ b/module/calp/html/view/calendar/month.scm
@@ -3,6 +3,7 @@
:use-module (srfi srfi-1)
:use-module (srfi srfi-41)
:use-module (srfi srfi-41 util)
+ :use-module (srfi srfi-88)
:use-module (datetime)
:use-module (calp html view calendar shared)
:use-module (calp html config)
@@ -19,7 +20,10 @@
)
;; (stream event-group) -> sxml
-(define* (render-calendar-table key: events start-date end-date pre-start post-end #:allow-other-keys)
+(define* (render-calendar-table key: events
+ start-date end-date
+ pre-start post-end
+ allow-other-keys:)
(define-values (long-events short-events)
;; TODO should be really-long-event? or event-spanning-midnight
diff --git a/module/calp/html/view/calendar/week.scm b/module/calp/html/view/calendar/week.scm
index 828dce41..ef630c36 100644
--- a/module/calp/html/view/calendar/week.scm
+++ b/module/calp/html/view/calendar/week.scm
@@ -3,6 +3,7 @@
:use-module (srfi srfi-1)
:use-module (srfi srfi-41)
:use-module (srfi srfi-71)
+ :use-module (srfi srfi-88)
:use-module (rnrs records syntactic)
:use-module (datetime)
:use-module (calp html view calendar shared)
@@ -26,7 +27,7 @@
)
-(define* (render-calendar key: calendars events start-date end-date #:allow-other-keys)
+(define* (render-calendar key: calendars events start-date end-date allow-other-keys:)
(let* ((long-events short-events (partition long-event? (stream->list (events-between start-date end-date events))))
(range (date-range start-date end-date)))
`((script ,(lambda () (format #t "window.VIEW='week';")))