summaryrefslogtreecommitdiff
path: root/client/html/post_readonly_sidebar.tpl
diff options
context:
space:
mode:
authorHunternif <hunternif@gmail.com>2019-04-23 00:23:44 +0700
committerHunternif <hunternif@gmail.com>2019-04-23 01:21:19 +0700
commit66d2701e4e32428fa86f0315c878b5210d572c6c (patch)
treea8d5862d4a12ae29059212a98218b0d59610fc97 /client/html/post_readonly_sidebar.tpl
parent1b2e9e4db6efc3a55d002b9550063252125b89b8 (diff)
client: view metric values in read-only sidebar
Diffstat (limited to 'client/html/post_readonly_sidebar.tpl')
-rw-r--r--client/html/post_readonly_sidebar.tpl7
1 files changed, 7 insertions, 0 deletions
diff --git a/client/html/post_readonly_sidebar.tpl b/client/html/post_readonly_sidebar.tpl
index d182048..9f6c530 100644
--- a/client/html/post_readonly_sidebar.tpl
+++ b/client/html/post_readonly_sidebar.tpl
@@ -108,4 +108,11 @@
</p>
<% } %>
</nav>
+
+ <% if (ctx.post.metrics.length + ctx.post.metricRanges.length) { %>
+ <nav class='metrics'>
+ <h1>Metrics (<%- ctx.post.metrics.length + ctx.post.metricRanges.length %>)</h1>
+ <ul class='compact-post-metrics'></ul>
+ </nav>
+ <% } %>
</div>