Fix #3371: Add CSS classes to tag categories in the split tag list.
This commit is contained in:
@@ -29,7 +29,7 @@ class TagSetPresenter < Presenter
|
|||||||
typetags = typed_tags(category)
|
typetags = typed_tags(category)
|
||||||
if typetags.any?
|
if typetags.any?
|
||||||
html << TagCategory.header_mapping[category]
|
html << TagCategory.header_mapping[category]
|
||||||
html << "<ul>"
|
html << %{<ul class="#{category}-tag-list">}
|
||||||
typetags.each do |tag|
|
typetags.each do |tag|
|
||||||
html << build_list_item(tag, template, options)
|
html << build_list_item(tag, template, options)
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -223,7 +223,7 @@ module Danbooru
|
|||||||
"category" => 0,
|
"category" => 0,
|
||||||
"short" => "gen",
|
"short" => "gen",
|
||||||
"extra" => [],
|
"extra" => [],
|
||||||
"header" => "<h1>Tags</h1>",
|
"header" => %{<h1 class="general-tag-list">Tags</h1>},
|
||||||
"humanized" => nil,
|
"humanized" => nil,
|
||||||
"relatedbutton" => "General"
|
"relatedbutton" => "General"
|
||||||
},
|
},
|
||||||
@@ -231,7 +231,7 @@ module Danbooru
|
|||||||
"category" => 4,
|
"category" => 4,
|
||||||
"short" => "char",
|
"short" => "char",
|
||||||
"extra" => ["ch"],
|
"extra" => ["ch"],
|
||||||
"header" => "<h2>Characters</h2>",
|
"header" => %{<h2 class="character-tag-list">Characters</h2>},
|
||||||
"humanized" => {
|
"humanized" => {
|
||||||
"slice" => 5,
|
"slice" => 5,
|
||||||
"exclusion" => [],
|
"exclusion" => [],
|
||||||
@@ -244,7 +244,7 @@ module Danbooru
|
|||||||
"category" => 3,
|
"category" => 3,
|
||||||
"short" => "copy",
|
"short" => "copy",
|
||||||
"extra" => ["co"],
|
"extra" => ["co"],
|
||||||
"header" => "<h2>Copyrights</h2>",
|
"header" => %{<h2 class="copyright-tag-list">Copyrights</h2>},
|
||||||
"humanized" => {
|
"humanized" => {
|
||||||
"slice" => 5,
|
"slice" => 5,
|
||||||
"exclusion" => [],
|
"exclusion" => [],
|
||||||
@@ -257,7 +257,7 @@ module Danbooru
|
|||||||
"category" => 1,
|
"category" => 1,
|
||||||
"short" => "art",
|
"short" => "art",
|
||||||
"extra" => [],
|
"extra" => [],
|
||||||
"header" => "<h2>Artist</h2>",
|
"header" => %{<h2 class="artist-tag-list">Artists</h2>},
|
||||||
"humanized" => {
|
"humanized" => {
|
||||||
"slice" => 0,
|
"slice" => 0,
|
||||||
"exclusion" => %w(banned_artist),
|
"exclusion" => %w(banned_artist),
|
||||||
@@ -270,7 +270,7 @@ module Danbooru
|
|||||||
"category" => 5,
|
"category" => 5,
|
||||||
"short" => "meta",
|
"short" => "meta",
|
||||||
"extra" => [],
|
"extra" => [],
|
||||||
"header" => "<h2>Meta</h2>",
|
"header" => %{<h2 class="meta-tag-list">Meta</h2>},
|
||||||
"humanized" => nil,
|
"humanized" => nil,
|
||||||
"relatedbutton" => nil
|
"relatedbutton" => nil
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user