This repository has been archived on 2025-02-26. You can view files and clone it, but cannot push or open issues or pull requests.
szurubooru/client/html/compact_metric_list_item.tpl
2024-05-04 16:55:35 -06:00

26 lines
1.2 KiB
Smarty

<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>