aboutsummaryrefslogtreecommitdiff
path: root/module/output/html.scm
diff options
context:
space:
mode:
Diffstat (limited to 'module/output/html.scm')
-rw-r--r--module/output/html.scm18
1 files changed, 10 insertions, 8 deletions
diff --git a/module/output/html.scm b/module/output/html.scm
index 63804386..de5bca01 100644
--- a/module/output/html.scm
+++ b/module/output/html.scm
@@ -165,16 +165,18 @@
title: "StΓ€ng"
onclick: ""
class: '("close-tooltip")
- )
- ,(btn "πŸ“…"
- title: "Ladda ner"
- href: (string-append "/calendar/" (prop ev 'UID) ".ics")))
+ ))
,(tabset
- (cons* `("πŸ“…" ,(fmt-single-event ev))
- (when (edit-mode)
- `(("</>" (script (@ (type "application/calendar+xml"))
- ,((@ (output xcal) vcomponent->sxcal) ev))))))))))
+ (append
+ `(("πŸ“…" ,(fmt-single-event ev))
+ ("–" (article (@ (style "font-family:sans"))
+ (p "Ladda ner")
+ (ul (li (a (@ (href ,(string-append "/calendar/" (prop ev 'UID) ".ics"))) "som iCal"))
+ (li (a (@ (href ,(string-append "/calendar/" (prop ev 'UID) ".xcs"))) "som xCal"))))))
+ (when (edit-mode)
+ `(("</>" (script (@ (type "application/calendar+xml"))
+ ,((@ (output xcal) vcomponent->sxcal) ev))))))))))