client/tags: quicker access to the tagged posts

Based on #656, plus escaping.
This commit is contained in:
dreamer
2024-05-03 15:25:30 +03:00
committed by Eva
parent 223bc9674a
commit e21cd61919
2 changed files with 2 additions and 1 deletions

View File

@ -71,7 +71,7 @@
<% } %>
</td>
<td class='usages'>
<%- tag.postCount %>
<a href='<%- ctx.formatClientLink('posts', {query: ctx.escapeTagName(tag.names[0])}) %>'><%- tag.postCount %></a>
</td>
<td class='creation-time'>
<%= ctx.makeRelativeTime(tag.creationTime) %>

View File

@ -460,6 +460,7 @@ function getTemplate(templatePath) {
makeCssName: misc.makeCssName,
makeNumericInput: makeNumericInput,
formatClientLink: uri.formatClientLink,
escapeTagName: uri.escapeTagName,
});
return htmlToDom(templateFactory(ctx));
};