aboutsummaryrefslogtreecommitdiff
path: root/client/html/compact_metric_list_item.tpl
diff options
context:
space:
mode:
authorHunternif2019-05-07 23:31:13 +0700
committerHunternif2019-05-07 23:59:44 +0700
commitde87b632c9858a5348d3132f2a15c5e6aeddfdba (patch)
tree2c045cc23731100b5612c51d8382df766ef9599b /client/html/compact_metric_list_item.tpl
parentf1581f8ff0a8bb2a7cefdb444841f641ced34363 (diff)
client: start metric sorting from post view
Diffstat (limited to 'client/html/compact_metric_list_item.tpl')
-rw-r--r--client/html/compact_metric_list_item.tpl8
1 files changed, 6 insertions, 2 deletions
diff --git a/client/html/compact_metric_list_item.tpl b/client/html/compact_metric_list_item.tpl
index ebca9af..5f2ae36 100644
--- a/client/html/compact_metric_list_item.tpl
+++ b/client/html/compact_metric_list_item.tpl
@@ -15,8 +15,12 @@
--><span class='metric-bounds' data-pseudo-content=
'<%- ctx.tag.metric.min %> &mdash; <%- ctx.tag.metric.max %>'></span><!--
--><span class='metric-controls'>Set<!--
- --> <a href class='create-exact'>exact</a><!--
- --> <a href class='create-range'>range</a><!--
+ --><a href class='create-exact'> exact</a><!--
+ --><a href class='create-range'> range</a><!--
+ --><a href='<%= ctx.getMetricSorterUrl(ctx.post.id, {
+ metrics: ctx.tag.names[0],
+ query: ctx.query}) %>'
+ class='sort'> sort</a><!--
--></span><!--
--><% } %><!--
--></li>

© 2015 - 2026 Jakob L. Kreuze