summaryrefslogtreecommitdiff
path: root/client/html/compact_metric_list_item.tpl
blob: ddddc33bec898f95e2c0956a16fe124e53c46352 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<li><!--
--><% if (ctx.editMode) { %><!--
    --><a href="<%- ctx.formatClientLink('tag', ctx.tag.names[0]) %>"
          class="<%= ctx.makeCssName(ctx.tag.category, 'tag') %>"><!--
        --><i class='fa fa-sliders-h tag-icon'></i><!--
    --></a><!--
    --><a href="<%- ctx.formatClientLink('posts', {
                query: 'metric-' + ctx.escapeTagName(ctx.tag.names[0]) +
                    ':' + ctx.tag.metric.min + '..' + ctx.tag.metric.max +
                    ' sort:metric-' + ctx.escapeTagName(ctx.tag.names[0])
                }) %>"
          class="<%= ctx.makeCssName(ctx.tag.category, 'tag') %>"><!--
        --><%- ctx.tag.names[0] %>&#32;<!--
    --></a><!--
    --><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='<%= ctx.getMetricSorterUrl(ctx.post.id, {
                    metrics: ctx.tag.names[0],
                    query: ctx.query}) %>'
               class='sort'> sort</a><!--
    --></span><!--
--><% } %><!--
--></li>