summaryrefslogtreecommitdiff
path: root/client/html
diff options
context:
space:
mode:
authorHunternif <hunternif@gmail.com>2019-04-27 02:47:03 +0700
committerHunternif <hunternif@gmail.com>2019-04-27 03:01:41 +0700
commit9b59b5f3b095a08a7b871c32554822a764e778ee (patch)
treed3530145344cf261719c6e41fc97f1fc70e74974 /client/html
parentbef4da79db44d88f8e20ffbd5165e417a13437c4 (diff)
client: Metrics menu on post list header
Diffstat (limited to 'client/html')
-rw-r--r--client/html/posts_header.tpl24
1 files changed, 20 insertions, 4 deletions
diff --git a/client/html/posts_header.tpl b/client/html/posts_header.tpl
index 27b46e8..7fdaf46 100644
--- a/client/html/posts_header.tpl
+++ b/client/html/posts_header.tpl
@@ -30,9 +30,22 @@
%><i class='fa fa-chevron-up icon-inline'></i><%
%></a><%
%></span><%
+ %><wbr/><%
+ if (ctx.canViewMetrics) {
+ %><span class="metrics-btn-holder"><%
+ %><a class='mousetrap button append open metrics-btn'><%
+ %>Metrics<%
+ %><i class='fa fa-chevron-down icon-inline'></i><%
+ %></a><%
+ %><a class='mousetrap button append close metrics-btn'><%
+ %>Metrics<%
+ %><i class='fa fa-chevron-up icon-inline'></i><%
+ %></a><%
+ %></span><%
+ }
%></form><%
%><div class='bulk-edit-block hidden'><%
- %><% if (ctx.canBulkEditTags) { %><%
+ if (ctx.canBulkEditTags) {
%><form class='horizontal bulk-edit bulk-edit-tags'><%
%><span class='append hint'>Tagging with:</span><%
%><a href class='mousetrap button append open'>Mass tag</a><%
@@ -41,17 +54,20 @@
%><input class='mousetrap start' type='submit' value='Start tagging'/><%
%><a href class='mousetrap button append close'>Stop tagging</a><%
%></form><%
- %><% } %><%
- %><% if (ctx.enableSafety && ctx.canBulkEditSafety) { %><%
+ }
+ if (ctx.enableSafety && ctx.canBulkEditSafety) {
%><form class='horizontal bulk-edit bulk-edit-safety'><%
%><a href class='mousetrap button append open'>Mass edit safety</a><%
%><a href class='mousetrap button append close'>Stop editing safety</a><%
%></form><%
- %><% } %><%
+ }
%><!--TODO: create permission--><%
%><form class='horizontal bulk-edit bulk-add-relation'><%
%><a href class='mousetrap button append open'>Mass add relation</a><%
%><a href class='mousetrap button append close'>Stop adding relation</a><%
%></form><%
%></div><%
+ if (ctx.canViewMetrics) {
+ %><div class='metrics-block hidden'>Hello</div><%
+ }
%></div>