Post list: Load JavaScript modules only if editing is enabled.
Change-Id: Ia6a41427866428da6bd57593c57173ad88f990f5
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}