From 07f9d48b2381f650fd36a4dffd09839045e2386e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Wed, 8 Jul 2020 01:40:30 +0200 Subject: HTML move download to own tab. --- module/output/html.scm | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'module/output/html.scm') 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)))))))))) -- cgit v1.2.3