Merge pull request #3456 from BrokenEagle/fix-3455

Fix 3455: Convert tag category Javascript/CSS assets to ERB
This commit is contained in:
Albert Yi
2017-12-25 13:22:04 -08:00
committed by GitHub
9 changed files with 48 additions and 71 deletions

View File

@@ -228,7 +228,11 @@ module Danbooru
"extra" => [],
"header" => %{<h1 class="general-tag-list">Tags</h1>},
"humanized" => nil,
"relatedbutton" => "General"
"relatedbutton" => "General",
"css" => {
"color" => "$link_color",
"hover" => "$link_hover_color"
}
},
"character" => {
"category" => 4,
@@ -241,7 +245,11 @@ module Danbooru
"regexmap" => /^(.+?)(?:_\(.+\))?$/,
"formatstr" => "%s"
},
"relatedbutton" => "Characters"
"relatedbutton" => "Characters",
"css" => {
"color" => "#0A0",
"hover" => "#6B6"
}
},
"copyright" => {
"category" => 3,
@@ -254,7 +262,11 @@ module Danbooru
"regexmap" => //,
"formatstr" => "(%s)"
},
"relatedbutton" => "Copyrights"
"relatedbutton" => "Copyrights",
"css" => {
"color" => "#A0A",
"hover" => "#B6B"
}
},
"artist" => {
"category" => 1,
@@ -267,7 +279,11 @@ module Danbooru
"regexmap" => //,
"formatstr" => "drawn by %s"
},
"relatedbutton" => "Artists"
"relatedbutton" => "Artists",
"css" => {
"color" => "#A00",
"hover" => "#B66"
}
},
"meta" => {
"category" => 5,
@@ -275,7 +291,11 @@ module Danbooru
"extra" => [],
"header" => %{<h2 class="meta-tag-list">Meta</h2>},
"humanized" => nil,
"relatedbutton" => nil
"relatedbutton" => nil,
"css" => {
"color" => "#F80",
"hover" => "#FA6"
}
}
}
end