diff --git a/client/html/post.tpl b/client/html/post.tpl index d767fa8d..00757774 100644 --- a/client/html/post.tpl +++ b/client/html/post.tpl @@ -28,7 +28,11 @@ Back to view mode <% } else { %> - + <% if (ctx.canEditPosts) { %> + + <% } else { %> + + <% } %> Edit post diff --git a/client/html/post_readonly_sidebar.tpl b/client/html/post_readonly_sidebar.tpl index fabfedc0..a95e5c31 100644 --- a/client/html/post_readonly_sidebar.tpl +++ b/client/html/post_readonly_sidebar.tpl @@ -39,30 +39,42 @@
- - <% if (ctx.post.ownScore == 1) { %> - - <% } else { %> + <% if (ctx.canScorePosts) { %> + + <% if (ctx.post.ownScore == 1) { %> + + <% } else { %> + + <% } %> + + + <% } else { %> + - <% } %> - - + + <% } %> <%= ctx.post.score %> - - <% if (ctx.post.ownScore == -1) { %> - - <% } else { %> - - <% } %> - - + <% if (ctx.canScorePosts) { %> + + <% if (ctx.post.ownScore == -1) { %> + + <% } else { %> + + <% } %> + + + <% } %>
- <% if (ctx.post.ownFavorite) { %> - + <% if (ctx.canFavoritePosts) { %> + <% if (ctx.post.ownFavorite) { %> + + <% } else { %> + + <% } %> <% } else { %> - + <% } %> <%= ctx.post.favoriteCount %>
@@ -74,12 +86,20 @@