mirror of
https://github.com/rr-/szurubooru.git
synced 2025-07-17 08:26:24 +00:00
client/tags: quicker access to the tagged posts
Based on #656, plus escaping.
This commit is contained in:
@ -71,7 +71,7 @@
|
|||||||
<% } %>
|
<% } %>
|
||||||
</td>
|
</td>
|
||||||
<td class='usages'>
|
<td class='usages'>
|
||||||
<%- tag.postCount %>
|
<a href='<%- ctx.formatClientLink('posts', {query: ctx.escapeTagName(tag.names[0])}) %>'><%- tag.postCount %></a>
|
||||||
</td>
|
</td>
|
||||||
<td class='creation-time'>
|
<td class='creation-time'>
|
||||||
<%= ctx.makeRelativeTime(tag.creationTime) %>
|
<%= ctx.makeRelativeTime(tag.creationTime) %>
|
||||||
|
@ -460,6 +460,7 @@ function getTemplate(templatePath) {
|
|||||||
makeCssName: misc.makeCssName,
|
makeCssName: misc.makeCssName,
|
||||||
makeNumericInput: makeNumericInput,
|
makeNumericInput: makeNumericInput,
|
||||||
formatClientLink: uri.formatClientLink,
|
formatClientLink: uri.formatClientLink,
|
||||||
|
escapeTagName: uri.escapeTagName,
|
||||||
});
|
});
|
||||||
return htmlToDom(templateFactory(ctx));
|
return htmlToDom(templateFactory(ctx));
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user