mirror of
https://github.com/rr-/szurubooru.git
synced 2025-07-17 08:26:24 +00:00
Add setting to display underscores as spaces in tags
This commit is contained in:
@ -91,7 +91,7 @@
|
||||
--><% if (ctx.canListPosts) { %><!--
|
||||
--><a href='<%- ctx.formatClientLink('posts', {query: ctx.escapeColons(tag.names[0])}) %>' class='<%= ctx.makeCssName(tag.category, 'tag') %>'><!--
|
||||
--><% } %><!--
|
||||
--><%- tag.names[0] %> <!--
|
||||
--><%- ctx.getPrettyTagName(tag.names[0]) %> <!--
|
||||
--><% if (ctx.canListPosts) { %><!--
|
||||
--></a><!--
|
||||
--><% } %><!--
|
||||
|
@ -63,6 +63,15 @@
|
||||
checked: ctx.browsingSettings.autoplayVideos,
|
||||
}) %>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<%= ctx.makeCheckbox({
|
||||
text: 'Display underscores as spaces in tags',
|
||||
name: 'tag-underscores-as-spaces',
|
||||
checked: ctx.browsingSettings.tagUnderscoresAsSpaces,
|
||||
}) %>
|
||||
<p class='hint'>Display all underscores as if they were spaces. This is only a visual change, which means that you'll still have to use underscores when searching or editing tags.</p>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<div class='messages'></div>
|
||||
|
@ -1,5 +1,5 @@
|
||||
<div class='content-wrapper' id='tag'>
|
||||
<h1><%- ctx.tag.names[0] %></h1>
|
||||
<h1><%- ctx.getPrettyTagName(ctx.tag.names[0]) %></h1>
|
||||
<nav class='buttons'><!--
|
||||
--><ul><!--
|
||||
--><li data-name='summary'><a href='<%- ctx.formatClientLink('tag', ctx.tag.names[0]) %>'>Summary</a></li><!--
|
||||
|
Reference in New Issue
Block a user