diff options
Diffstat (limited to 'module/html/view/calendar.scm')
-rw-r--r-- | module/html/view/calendar.scm | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/module/html/view/calendar.scm b/module/html/view/calendar.scm index 76d1e79f..a0de3551 100644 --- a/module/html/view/calendar.scm +++ b/module/html/view/calendar.scm @@ -30,7 +30,9 @@ :select (get-git-version)) ) -;; date should be start of month +;; Small calendar similar to the one below. +;; TODO highlight days depending on which events they contain +;; TODO run this standalone, for embedding in other websites. ;; @example ;; må ti on to fr lö sö ;; 1 2 3 4 5 6 7 @@ -39,7 +41,7 @@ ;; 22 23 24 25 26 27 28 ;; 29 30 ;; @end example -;; date - a date in the month to display +;; date - The start date of the month to display (define* (cal-table key: start-date end-date next-start prev-start) (define (td date) @@ -99,8 +101,13 @@ ;;; and the html-generate procedure also filters, but instead to find earlier eventns. ;;; All this filtering is probably slow, and should be looked into. +;; TODO place this somewhere proper (define repo-url (make-parameter "https://git.hornquist.se")) + +;; TODO document what @var{render-calendar} is supposed to take and return. +;; Can at least note that @var{render-calendar} is strongly encouraged to include +;; (script "const VIEW='??';"), where ?? is replaced by the name of the view. (define*-public (html-generate key: (intervaltype 'all) ; 'week | 'month | 'all @@ -183,10 +190,11 @@ next-start: next-start prev-start: prev-start ) - - ,@(for event in (stream->list - (events-between pre-start post-end events)) - (popup event (string-append "popup" (html-id event))))) + ;; Popups used to be here, but was moved into render-calendar so each + ;; sub-view can itself decide where to put them. This is important + ;; since they need to be placed as children to the scrolling + ;; component, if one such component exists. + ) ;; Page footer (footer |