From ce23330b4b703dea218c455826ea198dc99f2943 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Wed, 8 Jul 2020 00:47:24 +0200 Subject: Only include XCAL when in edit mode. --- module/output/html.scm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'module') 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)))))))))) -- cgit v1.2.3