aboutsummaryrefslogtreecommitdiff
path: root/module/output/html.scm
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2020-07-08 01:40:30 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2020-07-08 01:40:30 +0200
commit07f9d48b2381f650fd36a4dffd09839045e2386e (patch)
tree1b15e9128d4f69bf9dd89de5a6090167565232b3 /module/output/html.scm
parentAdd preliminary xcal download endpoint. (diff)
downloadcalp-07f9d48b2381f650fd36a4dffd09839045e2386e.tar.gz
calp-07f9d48b2381f650fd36a4dffd09839045e2386e.tar.xz
HTML move download to own tab.
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))))))))))