diff options
| author | Hunternif | 2019-05-07 23:31:13 +0700 |
|---|---|---|
| committer | Hunternif | 2019-05-07 23:59:44 +0700 |
| commit | de87b632c9858a5348d3132f2a15c5e6aeddfdba (patch) | |
| tree | 2c045cc23731100b5612c51d8382df766ef9599b /client/html/compact_metric_list_item.tpl | |
| parent | f1581f8ff0a8bb2a7cefdb444841f641ced34363 (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.tpl | 8 |
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 %> — <%- 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> |