modqueue: highlight bad tags instead of entire post.

Change it so that when a post contains bad tags, the tags themselves are
highlighted rather than the entire post.

This also adds a data-tag-name attribute to tags in tag lists.
This commit is contained in:
evazion
2020-03-03 03:16:53 -06:00
parent b0e2ffbe7d
commit 85f1674618
5 changed files with 11 additions and 24 deletions

View File

@@ -107,7 +107,7 @@ class TagSetPresenter < Presenter
count = tag.post_count
category = tag.category
html = %{<li class="tag-type-#{tag.category}">}
html = %{<li class="tag-type-#{tag.category}" data-tag-name="#{h(name)}">}
unless name_only
if category == Tag.categories.artist