Fix #3371: Add CSS classes to tag categories in the split tag list.

This commit is contained in:
evazion
2017-11-14 19:51:47 -06:00
parent dc5fdf6893
commit 56bf518e6d
2 changed files with 6 additions and 6 deletions

View File

@@ -29,7 +29,7 @@ class TagSetPresenter < Presenter
typetags = typed_tags(category)
if typetags.any?
html << TagCategory.header_mapping[category]
html << "<ul>"
html << %{<ul class="#{category}-tag-list">}
typetags.each do |tag|
html << build_list_item(tag, template, options)
end

View File

@@ -223,7 +223,7 @@ module Danbooru
"category" => 0,
"short" => "gen",
"extra" => [],
"header" => "<h1>Tags</h1>",
"header" => %{<h1 class="general-tag-list">Tags</h1>},
"humanized" => nil,
"relatedbutton" => "General"
},
@@ -231,7 +231,7 @@ module Danbooru
"category" => 4,
"short" => "char",
"extra" => ["ch"],
"header" => "<h2>Characters</h2>",
"header" => %{<h2 class="character-tag-list">Characters</h2>},
"humanized" => {
"slice" => 5,
"exclusion" => [],
@@ -244,7 +244,7 @@ module Danbooru
"category" => 3,
"short" => "copy",
"extra" => ["co"],
"header" => "<h2>Copyrights</h2>",
"header" => %{<h2 class="copyright-tag-list">Copyrights</h2>},
"humanized" => {
"slice" => 5,
"exclusion" => [],
@@ -257,7 +257,7 @@ module Danbooru
"category" => 1,
"short" => "art",
"extra" => [],
"header" => "<h2>Artist</h2>",
"header" => %{<h2 class="artist-tag-list">Artists</h2>},
"humanized" => {
"slice" => 0,
"exclusion" => %w(banned_artist),
@@ -270,7 +270,7 @@ module Danbooru
"category" => 5,
"short" => "meta",
"extra" => [],
"header" => "<h2>Meta</h2>",
"header" => %{<h2 class="meta-tag-list">Meta</h2>},
"humanized" => nil,
"relatedbutton" => nil
}