diff options
| author | neobooru <50623835+neobooru@users.noreply.github.com> | 2019-05-22 23:08:26 +0200 |
|---|---|---|
| committer | neobooru <50623835+neobooru@users.noreply.github.com> | 2019-05-22 23:10:27 +0200 |
| commit | 7b236b02c99d0389ca3b01be306d7cfbc764b346 (patch) | |
| tree | 033f56655630fc159bc609de60fc81a72ea2357f /client/html | |
| parent | bbde0ab9a069680d3eae514817f037aaa2f20509 (diff) | |
Add setting to display underscores as spaces in tags
Diffstat (limited to 'client/html')
| -rw-r--r-- | client/html/post_readonly_sidebar.tpl | 2 | ||||
| -rw-r--r-- | client/html/settings.tpl | 9 | ||||
| -rw-r--r-- | client/html/tag.tpl | 2 |
3 files changed, 11 insertions, 2 deletions
diff --git a/client/html/post_readonly_sidebar.tpl b/client/html/post_readonly_sidebar.tpl index 54d7241..c959655 100644 --- a/client/html/post_readonly_sidebar.tpl +++ b/client/html/post_readonly_sidebar.tpl @@ -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><!-- --><% } %><!-- diff --git a/client/html/settings.tpl b/client/html/settings.tpl index 6d65d01..4f72995 100644 --- a/client/html/settings.tpl +++ b/client/html/settings.tpl @@ -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> diff --git a/client/html/tag.tpl b/client/html/tag.tpl index 497790e..5b68023 100644 --- a/client/html/tag.tpl +++ b/client/html/tag.tpl @@ -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><!-- |