diff options
| author | Hunternif <hunternif@gmail.com> | 2021-08-31 01:01:52 +0100 |
|---|---|---|
| committer | Hunternif <hunternif@gmail.com> | 2021-08-31 02:27:14 +0100 |
| commit | deb7ab6ba6249e4ec85f95d0aa3451a20a3818ec (patch) | |
| tree | 3629b758b54e8b067d0030930b017204bffdf41d /client/html/posts_header.tpl | |
| parent | 8005f88396071a74e42039549311bf3d642cc53f (diff) | |
client: add buttons to quickly search for liked and favorite posts
Diffstat (limited to 'client/html/posts_header.tpl')
| -rw-r--r-- | client/html/posts_header.tpl | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/client/html/posts_header.tpl b/client/html/posts_header.tpl index 4869742..ef2e253 100644 --- a/client/html/posts_header.tpl +++ b/client/html/posts_header.tpl @@ -11,6 +11,16 @@ %><input data-safety=sketchy type='button' class='mousetrap safety safety-sketchy <%- ctx.settings.listPosts.sketchy ? '' : 'disabled' %>'/><% %><input data-safety=unsafe type='button' class='mousetrap safety safety-unsafe <%- ctx.settings.listPosts.unsafe ? '' : 'disabled' %>'/><% %><% } %><% + %><% if (ctx.isLoggedIn) { %><% + %><a href class='mousetrap icon-button query-shortcut' data-term='special:liked'><% + %><i class="fa fa-thumbs-up term-selected"></i><% + %><i class="far fa-thumbs-up term-unselected"></i><% + %></a><% + %><a href class='mousetrap icon-button query-shortcut' data-term='special:fav'><% + %><i class="fa fa-heart term-selected"></i><% + %><i class="far fa-heart term-unselected"></i><% + %></a><% + %><% } %><% %><wbr/><% %><a class='mousetrap button append' href='<%- ctx.formatClientLink('help', 'search', 'posts') %>'><% |