aboutsummaryrefslogtreecommitdiff
path: root/client/html
diff options
context:
space:
mode:
authorHunternif2021-09-03 17:21:31 +0100
committerHunternif2021-09-03 17:21:31 +0100
commit63326a502e078176804a720afaa4746999f006ac (patch)
treec65f6d68e2c59f2be5619c475439d8bb7f76622d /client/html
parent857220eb8800057f81c5bb55f044f1334dc55f9a (diff)
client: show similar posts section only with permission
Diffstat (limited to 'client/html')
-rw-r--r--client/html/post_readonly_sidebar.tpl12
1 files changed, 7 insertions, 5 deletions
diff --git a/client/html/post_readonly_sidebar.tpl b/client/html/post_readonly_sidebar.tpl
index 045cce8..6c6cbbe 100644
--- a/client/html/post_readonly_sidebar.tpl
+++ b/client/html/post_readonly_sidebar.tpl
@@ -82,11 +82,13 @@
</nav>
<% } %>
- <nav class='similar'>
- <h1>Similar</h1>
- <ul></ul>
- <a href='<%- ctx.formatClientLink("posts", {query: "similar:" + ctx.post.id}) %>'>See more</a>
- </nav>
+ <% if (ctx.canViewSimilar) { %>
+ <nav class='similar'>
+ <h1>Similar</h1>
+ <ul></ul>
+ <a href='<%- ctx.formatClientLink("posts", {query: "similar:" + ctx.post.id}) %>'>See more</a>
+ </nav>
+ <% } %>
<nav class='tags'>
<h1>Tags (<%- ctx.post.tags.length %>)</h1>

© 2015 - 2026 Jakob L. Kreuze