diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2020-07-08 01:40:30 +0200 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2020-07-08 01:40:30 +0200 |
commit | 07f9d48b2381f650fd36a4dffd09839045e2386e (patch) | |
tree | 1b15e9128d4f69bf9dd89de5a6090167565232b3 | |
parent | Add preliminary xcal download endpoint. (diff) | |
download | calp-07f9d48b2381f650fd36a4dffd09839045e2386e.tar.gz calp-07f9d48b2381f650fd36a4dffd09839045e2386e.tar.xz |
HTML move download to own tab.
-rw-r--r-- | module/output/html.scm | 18 | ||||
-rw-r--r-- | static/style.css | 1 |
2 files changed, 11 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)))))))))) diff --git a/static/style.css b/static/style.css index 3a116e6a..f7b8fbfa 100644 --- a/static/style.css +++ b/static/style.css @@ -640,6 +640,7 @@ along with their colors. max-width: 60ch; max-height: 60ch; min-width: 40ch; + min-height: 20ch; } .popup article { |