summaryrefslogtreecommitdiff
path: root/client/html/posts_header.tpl
diff options
context:
space:
mode:
authorrr- <rr-@sakuya.pl>2016-07-07 21:18:35 +0200
committerrr- <rr-@sakuya.pl>2016-07-08 00:54:24 +0200
commit5ac5eb550380e9c9a5c4fdbbbf08fadbe01ff4a9 (patch)
tree7aedc28b8fef9e62d8624fdd85a095ae90efa8e6 /client/html/posts_header.tpl
parentcd1f4709f0c636c6cbcf62c90c7df0eb593c6c3c (diff)
client/general: refactor URL parameter handling
Diffstat (limited to 'client/html/posts_header.tpl')
-rw-r--r--client/html/posts_header.tpl6
1 files changed, 3 insertions, 3 deletions
diff --git a/client/html/posts_header.tpl b/client/html/posts_header.tpl
index f92cff7..a1af737 100644
--- a/client/html/posts_header.tpl
+++ b/client/html/posts_header.tpl
@@ -1,6 +1,6 @@
<div class='post-list-header'>
<form class='horizontal search'>
- <%= ctx.makeTextInput({text: 'Search query', id: 'search-text', name: 'search-text', value: ctx.searchQuery.text}) %>
+ <%= ctx.makeTextInput({text: 'Search query', id: 'search-text', name: 'search-text', value: ctx.parameters.query}) %>
<input class='mousetrap' type='submit' value='Search'/>
<input data-safety=safe type='button' class='mousetrap safety safety-safe <%- ctx.settings.listPosts.safe ? '' : 'disabled' %>'/>
<input data-safety=sketchy type='button' class='mousetrap safety safety-sketchy <%- ctx.settings.listPosts.sketchy ? '' : 'disabled' %>'/>
@@ -9,12 +9,12 @@
</form>
<% if (ctx.canMassTag) { %>
<form class='masstag horizontal'>
- <% if (ctx.searchQuery.tag) { %>
+ <% if (ctx.parameters.tag) { %>
<span class='append'>Tagging with:</span>
<% } else { %>
<a class='mousetrap button append open-masstag' href='#'>Mass tag</a>
<% } %>
- <%= ctx.makeTextInput({name: 'masstag', value: ctx.searchQuery.tag}) %>
+ <%= ctx.makeTextInput({name: 'masstag', value: ctx.parameters.tag}) %>
<input class='mousetrap start-tagging' type='submit' value='Start tagging'/>
<a class='mousetrap button append stop-tagging' href='#'>Stop tagging</a>
</form>