mirror of
https://github.com/rr-/szurubooru.git
synced 2025-07-17 08:26:24 +00:00
remove tags.json
This commit is contained in:
@ -55,9 +55,7 @@
|
||||
|
||||
<% if (ctx.canEditPostTags) { %>
|
||||
<section class='tags'>
|
||||
<%= ctx.makeTextInput({
|
||||
value: ctx.post.tags.join(' '),
|
||||
}) %>
|
||||
<%= ctx.makeTextInput({}) %>
|
||||
</section>
|
||||
<% } %>
|
||||
|
||||
|
@ -69,20 +69,20 @@
|
||||
--><% for (let tag of ctx.post.tags) { %><!--
|
||||
--><li><!--
|
||||
--><% if (ctx.canViewTags) { %><!--
|
||||
--><a href='<%- ctx.formatClientLink('tag', tag) %>' class='<%= ctx.makeCssName(ctx.getTagCategory(tag), 'tag') %>'><!--
|
||||
--><a href='<%- ctx.formatClientLink('tag', tag.names[0]) %>' class='<%= ctx.makeCssName(tag.category, 'tag') %>'><!--
|
||||
--><i class='fa fa-tag'></i><!--
|
||||
--><% } %><!--
|
||||
--><% if (ctx.canViewTags) { %><!--
|
||||
--></a><!--
|
||||
--><% } %><!--
|
||||
--><% if (ctx.canListPosts) { %><!--
|
||||
--><a href='<%- ctx.formatClientLink('posts', {query: tag}) %>' class='<%= ctx.makeCssName(ctx.getTagCategory(tag), 'tag') %>'><!--
|
||||
--><a href='<%- ctx.formatClientLink('posts', {query: tag.names[0]}) %>' class='<%= ctx.makeCssName(tag.category, 'tag') %>'><!--
|
||||
--><% } %><!--
|
||||
--><%- tag %> <!--
|
||||
--><%- tag.names[0] %> <!--
|
||||
--><% if (ctx.canListPosts) { %><!--
|
||||
--></a><!--
|
||||
--><% } %><!--
|
||||
--><span class='tag-usages' data-pseudo-content='<%- ctx.getTagUsages(tag) %>'></span><!--
|
||||
--><span class='tag-usages' data-pseudo-content='<%- tag.postCount %>'></span><!--
|
||||
--></li><!--
|
||||
--><% } %><!--
|
||||
--></ul>
|
||||
|
@ -4,7 +4,7 @@
|
||||
<% for (let post of ctx.response.results) { %>
|
||||
<li data-post-id='<%= post.id %>'>
|
||||
<a class='thumbnail-wrapper <%= post.tags.length > 0 ? "tags" : "no-tags" %>'
|
||||
title='@<%- post.id %> (<%- post.type %>) Tags: <%- post.tags.map(tag => '#' + tag).join(' ') || 'none' %>'
|
||||
title='@<%- post.id %> (<%- post.type %>) Tags: <%- post.tags.map(tag => '#' + tag.names[0]).join(' ') || 'none' %>'
|
||||
href='<%= ctx.canViewPosts ? ctx.getPostUrl(post.id, ctx.parameters) : '' %>'>
|
||||
<%= ctx.makeThumbnail(post.thumbnailUrl) %>
|
||||
<span class='type' data-type='<%- post.type %>'>
|
||||
|
@ -22,18 +22,12 @@
|
||||
</li>
|
||||
<li class='implications'>
|
||||
<% if (ctx.canEditImplications) { %>
|
||||
<%= ctx.makeTextInput({
|
||||
text: 'Implications',
|
||||
value: ctx.tag.implications.join(' '),
|
||||
}) %>
|
||||
<%= ctx.makeTextInput({text: 'Implications'}) %>
|
||||
<% } %>
|
||||
</li>
|
||||
<li class='suggestions'>
|
||||
<% if (ctx.canEditSuggestions) { %>
|
||||
<%= ctx.makeTextInput({
|
||||
text: 'Suggestions',
|
||||
value: ctx.tag.suggestions.join(' '),
|
||||
}) %>
|
||||
<%= ctx.makeTextInput({text: 'Suggestions'}) %>
|
||||
<% } %>
|
||||
</li>
|
||||
<li class='description'>
|
||||
|
@ -9,7 +9,7 @@
|
||||
Aliases:<br/>
|
||||
<ul><!--
|
||||
--><% for (let name of ctx.tag.names.slice(1)) { %><!--
|
||||
--><li><%= ctx.makeTagLink(name) %></li><!--
|
||||
--><li><%= ctx.makeTagLink(name, false, false, ctx.tag) %></li><!--
|
||||
--><% } %><!--
|
||||
--></ul>
|
||||
</section>
|
||||
@ -18,7 +18,7 @@
|
||||
Implications:<br/>
|
||||
<ul><!--
|
||||
--><% for (let tag of ctx.tag.implications) { %><!--
|
||||
--><li><%= ctx.makeTagLink(tag) %></li><!--
|
||||
--><li><%= ctx.makeTagLink(tag.names[0], false, false, tag) %></li><!--
|
||||
--><% } %><!--
|
||||
--></ul>
|
||||
</section>
|
||||
@ -27,7 +27,7 @@
|
||||
Suggestions:<br/>
|
||||
<ul><!--
|
||||
--><% for (let tag of ctx.tag.suggestions) { %><!--
|
||||
--><li><%= ctx.makeTagLink(tag) %></li><!--
|
||||
--><li><%= ctx.makeTagLink(tag.names[0], false, false, tag) %></li><!--
|
||||
--><% } %><!--
|
||||
--></ul>
|
||||
</section>
|
||||
|
@ -44,15 +44,15 @@
|
||||
<td class='names'>
|
||||
<ul>
|
||||
<% for (let name of tag.names) { %>
|
||||
<li><%= ctx.makeTagLink(name) %></li>
|
||||
<li><%= ctx.makeTagLink(name, false, false, tag) %></li>
|
||||
<% } %>
|
||||
</ul>
|
||||
</td>
|
||||
<td class='implications'>
|
||||
<% if (tag.implications.length) { %>
|
||||
<ul>
|
||||
<% for (let name of tag.implications) { %>
|
||||
<li><%= ctx.makeTagLink(name) %></li>
|
||||
<% for (let relation of tag.implications) { %>
|
||||
<li><%= ctx.makeTagLink(relation.names[0], false, false, relation) %></li>
|
||||
<% } %>
|
||||
</ul>
|
||||
<% } else { %>
|
||||
@ -62,8 +62,8 @@
|
||||
<td class='suggestions'>
|
||||
<% if (tag.suggestions.length) { %>
|
||||
<ul>
|
||||
<% for (let name of tag.suggestions) { %>
|
||||
<li><%= ctx.makeTagLink(name) %></li>
|
||||
<% for (let relation of tag.suggestions) { %>
|
||||
<li><%= ctx.makeTagLink(relation.names[0], false, false, relation) %></li>
|
||||
<% } %>
|
||||
</ul>
|
||||
<% } else { %>
|
||||
|
Reference in New Issue
Block a user