aboutsummaryrefslogtreecommitdiff
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
parentAdd preliminary xcal download endpoint. (diff)
downloadcalp-07f9d48b2381f650fd36a4dffd09839045e2386e.tar.gz
calp-07f9d48b2381f650fd36a4dffd09839045e2386e.tar.xz
HTML move download to own tab.
-rw-r--r--module/output/html.scm18
-rw-r--r--static/style.css1
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 {