diff options
| author | Hunternif <hunternif@gmail.com> | 2019-04-23 00:23:44 +0700 |
|---|---|---|
| committer | Hunternif <hunternif@gmail.com> | 2019-04-23 01:21:19 +0700 |
| commit | 66d2701e4e32428fa86f0315c878b5210d572c6c (patch) | |
| tree | a8d5862d4a12ae29059212a98218b0d59610fc97 /client/html/compact_post_metric_list_item.tpl | |
| parent | 1b2e9e4db6efc3a55d002b9550063252125b89b8 (diff) | |
client: view metric values in read-only sidebar
Diffstat (limited to 'client/html/compact_post_metric_list_item.tpl')
| -rw-r--r-- | client/html/compact_post_metric_list_item.tpl | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/client/html/compact_post_metric_list_item.tpl b/client/html/compact_post_metric_list_item.tpl index 82f9d83..75b5d81 100644 --- a/client/html/compact_post_metric_list_item.tpl +++ b/client/html/compact_post_metric_list_item.tpl @@ -6,7 +6,7 @@ }) %>" class="<%= ctx.makeCssName(ctx.tag.category, 'tag') %>"><!-- --><i class='fas fa-angle-right tag-icon'></i><!-- - --><%- ctx.postMetric.tagName %>:</a><!-- + --><%- ctx.postMetric.tagName %>:</a><!-- --><%= ctx.makeNumericInput({ name: 'value', value: ctx.postMetric.value, @@ -14,6 +14,16 @@ min: ctx.tag.metric.min, max: ctx.tag.metric.max, }) %><!-- +--><% } else { %><!-- + --><a href="<%- ctx.formatClientLink('tag', ctx.postMetric.tagName, 'metric') %>" + class="<%= ctx.makeCssName(ctx.tag.category, 'tag') %>"><!-- + --><i class='fas fa-angle-right tag-icon'></i><!-- + --></a><!-- + --><a href="<%- ctx.formatClientLink('posts', { + query: 'metric-' + ctx.escapeColons(ctx.postMetric.tagName) + + ':' + ctx.postMetric.value + }) %>" + class="<%= ctx.makeCssName(ctx.tag.category, 'tag') %>"><!-- + --><%- ctx.postMetric.tagName %>: <%- ctx.postMetric.value || 0 %></a><!-- --><% } %><!-- --></li> - |