diff options
| author | Hunternif | 2019-04-24 01:29:20 +0700 |
|---|---|---|
| committer | Hunternif | 2019-04-24 01:29:20 +0700 |
| commit | 0616dabe801d160b495af0dcaa1ef5d0ba8b2531 (patch) | |
| tree | 18254e5d37a41afa40bbbee366fafdb58f5afb80 /client/html/compact_post_metric_list_item.tpl | |
| parent | cb1840b0c09e7014ce264d95c469e9d0d1bfd55f (diff) | |
client: change links on post metrics to show the entire metric
Diffstat (limited to 'client/html/compact_post_metric_list_item.tpl')
| -rw-r--r-- | client/html/compact_post_metric_list_item.tpl | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/client/html/compact_post_metric_list_item.tpl b/client/html/compact_post_metric_list_item.tpl index b0dca33..fda9136 100644 --- a/client/html/compact_post_metric_list_item.tpl +++ b/client/html/compact_post_metric_list_item.tpl @@ -2,8 +2,8 @@ --><% if (ctx.editMode) { %><!-- --><a class='remove-metric' data-pseudo-content='×'/><!-- --><a href="<%- ctx.formatClientLink('posts', { - query: 'metric-' + ctx.escapeColons(ctx.postMetric.tagName) + - ':' + ctx.postMetric.value + query: 'metric-' + ctx.escapeColons(ctx.tag.names[0]) + + ':' + ctx.tag.metric.min + '..' + ctx.tag.metric.max }) %>" class="<%= ctx.makeCssName(ctx.tag.category, 'tag') %>"><!-- --><i class='fas fa-angle-right tag-icon'></i><!-- @@ -16,13 +16,13 @@ max: ctx.tag.metric.max, }) %><!-- --><% } else { %><!-- - --><a href="<%- ctx.formatClientLink('tag', ctx.postMetric.tagName, 'metric') %>" + --><a href="<%- ctx.formatClientLink('tag', ctx.tag.names[0]) %>" 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 + query: 'metric-' + ctx.escapeColons(ctx.tag.names[0]) + + ':' + ctx.tag.metric.min + '..' + ctx.tag.metric.max }) %>" class="<%= ctx.makeCssName(ctx.tag.category, 'tag') %>"><!-- --><%- ctx.postMetric.tagName %>: <%- ctx.postMetric.value || 0 %></a><!-- |