summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
Diffstat (limited to 'client')
-rw-r--r--client/html/compact_metric_list_item.tpl3
-rw-r--r--client/html/compact_post_metric_list_item.tpl10
-rw-r--r--client/html/compact_post_metric_range_list_item.tpl10
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] %>&#32;<!--
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 %> &mdash; <%- ctx.postMetricRange.high || 0 %><!--