use only 1 copyright tag by default in humanized essential tag string
This commit is contained in:
@@ -73,7 +73,7 @@ class TagSetPresenter < Presenter
|
|||||||
next if type_tags.empty?
|
next if type_tags.empty?
|
||||||
|
|
||||||
if max_tags > 0 && type_tags.length > max_tags
|
if max_tags > 0 && type_tags.length > max_tags
|
||||||
type_tags = type_tags.take(max_tags) + ["others"]
|
type_tags = type_tags.sort_by {|x| -x.size}.take(max_tags) + ["etc"]
|
||||||
end
|
end
|
||||||
|
|
||||||
if regexmap != //
|
if regexmap != //
|
||||||
|
|||||||
@@ -341,7 +341,7 @@ module Danbooru
|
|||||||
"extra" => ["co"],
|
"extra" => ["co"],
|
||||||
"header" => %{<h2 class="copyright-tag-list">Copyrights</h2>},
|
"header" => %{<h2 class="copyright-tag-list">Copyrights</h2>},
|
||||||
"humanized" => {
|
"humanized" => {
|
||||||
"slice" => 5,
|
"slice" => 1,
|
||||||
"exclusion" => [],
|
"exclusion" => [],
|
||||||
"regexmap" => //,
|
"regexmap" => //,
|
||||||
"formatstr" => "(%s)"
|
"formatstr" => "(%s)"
|
||||||
|
|||||||
Reference in New Issue
Block a user