diff options
Diffstat (limited to 'module')
-rw-r--r-- | module/output/html.scm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/module/output/html.scm b/module/output/html.scm index 130796e7..63804386 100644 --- a/module/output/html.scm +++ b/module/output/html.scm @@ -171,10 +171,10 @@ href: (string-append "/calendar/" (prop ev 'UID) ".ics"))) ,(tabset - `(("📅" ,(fmt-single-event ev)) - ;; TODO only on debug/edit? - ("</>" (script (@ (type "application/calendar+xml")) - ,((@ (output xcal) vcomponent->sxcal) ev)))))))) + (cons* `("📅" ,(fmt-single-event ev)) + (when (edit-mode) + `(("</>" (script (@ (type "application/calendar+xml")) + ,((@ (output xcal) vcomponent->sxcal) ev)))))))))) |