aboutsummaryrefslogtreecommitdiff
path: root/client/html/posts_page.tpl
diff options
context:
space:
mode:
authorrr-2016-07-05 21:20:28 +0200
committerrr-2016-07-06 23:03:37 +0200
commitfccedc090f5996ea084503dd35eb25c5d7cd8cc1 (patch)
treed1778e8576ad70fa6e3f6c4d5c1d6effab5809af /client/html/posts_page.tpl
parent99011b02d76954eac455038713158013bd80a135 (diff)
client/posts: add mass tag
Diffstat (limited to 'client/html/posts_page.tpl')
-rw-r--r--client/html/posts_page.tpl10
1 files changed, 7 insertions, 3 deletions
diff --git a/client/html/posts_page.tpl b/client/html/posts_page.tpl
index 5e2b3e8..89cb94e 100644
--- a/client/html/posts_page.tpl
+++ b/client/html/posts_page.tpl
@@ -5,12 +5,12 @@
<li>
<% if (ctx.canViewPosts) { %>
<% if (ctx.searchQuery && ctx.searchQuery.text) { %>
- <a href='/post/<%- encodeURIComponent(post.id) %>/text=<%- encodeURIComponent(ctx.searchQuery.text) %>' title='@<%- post.id %> (<%- post.type %>)&#10;&#10;Tags: <%- post.tags.map(tag => '#' + tag).join(' ') %>'>
+ <a class='thumbnail-wrapper' href='/post/<%- encodeURIComponent(post.id) %>/text=<%- encodeURIComponent(ctx.searchQuery.text) %>' title='@<%- post.id %> (<%- post.type %>)&#10;&#10;Tags: <%- post.tags.map(tag => '#' + tag).join(' ') %>'>
<% } else { %>
- <a href='/post/<%- encodeURIComponent(post.id) %>' title='@<%- post.id %> (<%- post.type %>)&#10;&#10;Tags: <%- post.tags.map(tag => '#' + tag).join(' ') %>'>
+ <a class='thumbnail-wrapper' href='/post/<%- encodeURIComponent(post.id) %>' title='@<%- post.id %> (<%- post.type %>)&#10;&#10;Tags: <%- post.tags.map(tag => '#' + tag).join(' ') %>'>
<% } %>
<% } else { %>
- <a>
+ <a class='thumbnail-wrapper'>
<% } %>
<%= ctx.makeThumbnail(post.thumbnailUrl) %>
<span class='type' data-type='<%- post.type %>'>
@@ -39,6 +39,10 @@
</span>
<% } %>
</a>
+ <% if (ctx.searchQuery && ctx.searchQuery.tag) { %>
+ <a data-post-id='<%= post.id %>' class='masstag'>
+ </a>
+ <% } %>
</li>
<% } %>
<%= ctx.makeFlexboxAlign() %>

© 2015 - 2026 Jakob L. Kreuze