summaryrefslogtreecommitdiff
path: root/client/html/compact_post_metric_range_list_item.tpl
blob: fd4c40e5e2643a47f04428e7cff484da56676f7f (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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<li><!--
--><% if (ctx.editMode) { %><!--
    --><a class='remove-metric' data-pseudo-content='×'/><!--
    --><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') %>"><!--
        --><i class='fas fa-arrows-alt-h tag-icon'></i><!--
        --><%- ctx.postMetricRange.tagName %>:</a><!--
    --><%= ctx.makeNumericInput({
           name: 'low',
           value: ctx.postMetricRange.low,
           step: 'any',
           min: ctx.tag.metric.min,
           max: ctx.tag.metric.max,
       }) %><!--
    --><span class='range-delimiter'>&mdash;</span><!--
    --><%= ctx.makeNumericInput({
        name: 'high',
        value: ctx.postMetricRange.high,
        step: 'any',
        min: ctx.tag.metric.min,
        max: ctx.tag.metric.max,
        }) %><!--
--><% } else { %><!--
    --><a href="<%- ctx.formatClientLink('tag', ctx.tag.names[0]) %>"
          class="<%= ctx.makeCssName(ctx.tag.category, 'tag') %>"><!--
        --><i class='fas fa-arrows-alt-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.postMetricRange.tagName %>:
        <%- ctx.postMetricRange.low || 0 %> &mdash; <%- ctx.postMetricRange.high || 0 %><!--
    --></a><!--
--><% } %><!--
--></li>