diff options
| author | Hunternif <hunternif@gmail.com> | 2019-04-25 21:38:00 +0700 |
|---|---|---|
| committer | Hunternif <hunternif@gmail.com> | 2019-04-25 21:38:00 +0700 |
| commit | 6295befecafcdc2bd42d0a3d8ade7f157bb44a60 (patch) | |
| tree | 4020b934adb093d76963072a66887775c8befb8d | |
| parent | dad805d89aab1e54eb3edea32cf810e53d8a1419 (diff) | |
client: apply sort on metric urls
| -rw-r--r-- | client/html/compact_metric_list_item.tpl | 3 | ||||
| -rw-r--r-- | client/html/compact_post_metric_list_item.tpl | 10 | ||||
| -rw-r--r-- | client/html/compact_post_metric_range_list_item.tpl | 10 |
3 files changed, 14 insertions, 9 deletions
diff --git a/client/html/compact_metric_list_item.tpl b/client/html/compact_metric_list_item.tpl index c60ff31..61f979d 100644 --- a/client/html/compact_metric_list_item.tpl +++ b/client/html/compact_metric_list_item.tpl @@ -6,7 +6,8 @@ --></a><!-- --><a href="<%- ctx.formatClientLink('posts', { query: 'metric-' + ctx.escapeColons(ctx.tag.names[0]) + - ':' + ctx.tag.metric.min + '..' + ctx.tag.metric.max + ':' + ctx.tag.metric.min + '..' + ctx.tag.metric.max + + ' sort:metric-' + ctx.escapeColons(ctx.tag.names[0]) }) %>" class="<%= ctx.makeCssName(ctx.tag.category, 'tag') %>"><!-- --><%- ctx.tag.names[0] %> <!-- diff --git a/client/html/compact_post_metric_list_item.tpl b/client/html/compact_post_metric_list_item.tpl index fda9136..77b484f 100644 --- a/client/html/compact_post_metric_list_item.tpl +++ b/client/html/compact_post_metric_list_item.tpl @@ -3,7 +3,8 @@ --><a class='remove-metric' data-pseudo-content='×'/><!-- --><a href="<%- ctx.formatClientLink('posts', { query: 'metric-' + ctx.escapeColons(ctx.tag.names[0]) + - ':' + ctx.tag.metric.min + '..' + ctx.tag.metric.max + ':' + ctx.tag.metric.min + '..' + ctx.tag.metric.max + + ' sort:metric-' + ctx.escapeColons(ctx.tag.names[0]) }) %>" class="<%= ctx.makeCssName(ctx.tag.category, 'tag') %>"><!-- --><i class='fas fa-angle-right tag-icon'></i><!-- @@ -21,9 +22,10 @@ --><i class='fas fa-angle-right tag-icon'></i><!-- --></a><!-- --><a href="<%- ctx.formatClientLink('posts', { - query: 'metric-' + ctx.escapeColons(ctx.tag.names[0]) + - ':' + ctx.tag.metric.min + '..' + ctx.tag.metric.max - }) %>" + query: 'metric-' + ctx.escapeColons(ctx.tag.names[0]) + + ':' + ctx.tag.metric.min + '..' + ctx.tag.metric.max + + ' sort:metric-' + ctx.escapeColons(ctx.tag.names[0]) + }) %>" class="<%= ctx.makeCssName(ctx.tag.category, 'tag') %>"><!-- --><%- ctx.postMetric.tagName %>: <%- ctx.postMetric.value || 0 %></a><!-- --><% } %><!-- diff --git a/client/html/compact_post_metric_range_list_item.tpl b/client/html/compact_post_metric_range_list_item.tpl index f7a4251..ba91a57 100644 --- a/client/html/compact_post_metric_range_list_item.tpl +++ b/client/html/compact_post_metric_range_list_item.tpl @@ -3,7 +3,8 @@ --><a class='remove-metric' data-pseudo-content='×'/><!-- --><a href="<%- ctx.formatClientLink('posts', { query: 'metric-' + ctx.escapeColons(ctx.tag.names[0]) + - ':' + ctx.tag.metric.min + '..' + ctx.tag.metric.max + ':' + ctx.tag.metric.min + '..' + ctx.tag.metric.max + + ' sort:metric-' + ctx.escapeColons(ctx.tag.names[0]) }) %>" class="<%= ctx.makeCssName(ctx.tag.category, 'tag') %>"><!-- --><i class='fas fa-arrows-alt-h tag-icon'></i><!-- @@ -29,9 +30,10 @@ --><i class='fas fa-arrows-alt-h tag-icon'></i><!-- --></a><!-- --><a href="<%- ctx.formatClientLink('posts', { - query: 'metric-' + ctx.escapeColons(ctx.tag.names[0]) + - ':' + ctx.tag.metric.min + '..' + ctx.tag.metric.max - }) %>" + query: 'metric-' + ctx.escapeColons(ctx.tag.names[0]) + + ':' + ctx.tag.metric.min + '..' + ctx.tag.metric.max + + ' sort:metric-' + ctx.escapeColons(ctx.tag.names[0]) + }) %>" class="<%= ctx.makeCssName(ctx.tag.category, 'tag') %>"><!-- --><%- ctx.postMetricRange.tagName %>: <%- ctx.postMetricRange.low || 0 %> — <%- ctx.postMetricRange.high || 0 %><!-- |