summaryrefslogtreecommitdiff
path: root/src/main/resources/templates/benki/posts/postList.html
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <code@mail.matthias.benkard.de>2020-04-27 08:08:17 +0200
committerMatthias Andreas Benkard <code@mail.matthias.benkard.de>2020-04-27 08:08:17 +0200
commitad76d62a2656602cb6969b17cc35cfdfc4ff208c (patch)
tree4f3ceeb6b47a012205d72baa119bfed95925a925 /src/main/resources/templates/benki/posts/postList.html
parent8040689b6a96f38c03b703386466128f4df5b762 (diff)
Post list: Load JavaScript modules only if editing is enabled.
Change-Id: Ia6a41427866428da6bd57593c57173ad88f990f5
Diffstat (limited to 'src/main/resources/templates/benki/posts/postList.html')
-rw-r--r--src/main/resources/templates/benki/posts/postList.html2
1 files changed, 2 insertions, 0 deletions
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}