diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2020-09-08 00:44:04 +0200 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2020-09-08 00:44:04 +0200 |
commit | 6774c0ecd4cbe94325b9dc00b093faf960b82f04 (patch) | |
tree | 4ed42292697b330c7a0c5e9b9d83533edcffe269 /module/c | |
parent | Templetize get_property. (diff) | |
download | calp-6774c0ecd4cbe94325b9dc00b093faf960b82f04.tar.gz calp-6774c0ecd4cbe94325b9dc00b093faf960b82f04.tar.xz |
HTML add description on existing events.
Diffstat (limited to '')
-rw-r--r-- | module/calp/html/vcomponent.scm | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/module/calp/html/vcomponent.scm b/module/calp/html/vcomponent.scm index 3a2bd3cc..49b24fbc 100644 --- a/module/calp/html/vcomponent.scm +++ b/module/calp/html/vcomponent.scm @@ -90,20 +90,21 @@ "~1T~3"))) ,(datetime->string (as-datetime (prop ev 'DTEND)) end)))])) - ,(when (and=> (prop ev 'LOCATION) (negate string-null?)) - `(div (b "Plats: ") - (div (@ (class "location")) - ,(string-map (lambda (c) (if (char=? c #\,) #\newline c)) - (prop ev 'LOCATION))))) - ,(awhen (prop ev 'DESCRIPTION) - `(span (@ (class "description")) - ,(format-description ev it))) - ,(awhen (prop ev 'RRULE) - `(span (@ (class "rrule")) - ,@(format-recurrence-rule ev))) - ,(when (prop ev 'LAST-MODIFIED) - `(span (@ (class "last-modified")) "Senast ändrad " - ,(datetime->string (prop ev 'LAST-MODIFIED) "~1 ~H:~M"))) + (div (@ (class "fields")) + ,(when (and=> (prop ev 'LOCATION) (negate string-null?)) + `(div (b "Plats: ") + (div (@ (class "location")) + ,(string-map (lambda (c) (if (char=? c #\,) #\newline c)) + (prop ev 'LOCATION))))) + ,(awhen (prop ev 'DESCRIPTION) + `(span (@ (class "description")) + ,(format-description ev it))) + ,(awhen (prop ev 'RRULE) + `(span (@ (class "rrule")) + ,@(format-recurrence-rule ev))) + ,(when (prop ev 'LAST-MODIFIED) + `(span (@ (class "last-modified")) "Senast ändrad " + ,(datetime->string (prop ev 'LAST-MODIFIED) "~1 ~H:~M")))) ))) |