From ad76d62a2656602cb6969b17cc35cfdfc4ff208c Mon Sep 17 00:00:00 2001 From: Matthias Andreas Benkard <code@mail.matthias.benkard.de> Date: Mon, 27 Apr 2020 08:08:17 +0200 Subject: Post list: Load JavaScript modules only if editing is enabled. Change-Id: Ia6a41427866428da6bd57593c57173ad88f990f5 --- src/main/resources/templates/benki/posts/postList.html | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/main/resources/templates/benki') diff --git a/src/main/resources/templates/benki/posts/postList.html b/src/main/resources/templates/benki/posts/postList.html index 1cda0b8..bf4061a 100644 --- a/src/main/resources/templates/benki/posts/postList.html +++ b/src/main/resources/templates/benki/posts/postList.html @@ -17,12 +17,14 @@ {#head} <link href="{feedUri}" rel="alternate" type="application/atom+xml" /> + {#if showBookmarkForm || showLazychatForm} <script type="module" src="/web_modules/elix/define/Button.js"></script> <script type="module" src="/web_modules/elix/define/ExpandablePanel.js"></script> <script type="module" src="/web_modules/elix/define/ExpandableSection.js"></script> <script type="module" src="/bookmarks/MlkBookmarkSubmissionForm.js"></script> <script type="module" src="/lazychat/MlkLazychatSubmissionForm.js"></script> <script type="module" src="/posts/postList.js" defer></script> + {/if} {/head} {#body} -- cgit v1.2.3