improves humanized_essential_tag_string
This commit is contained in:
@@ -55,8 +55,8 @@ class PostPresenter < Presenter
|
|||||||
end
|
end
|
||||||
|
|
||||||
if @post.copyright_tags.any?
|
if @post.copyright_tags.any?
|
||||||
string << "from"
|
copytags = @post.copyright_tags.slice(0, 5).to_sentence
|
||||||
string << @post.copyright_tags.slice(0, 5).to_sentence
|
string << (@post.character_tags.any? ? "(#{copytags})" : copytags)
|
||||||
end
|
end
|
||||||
|
|
||||||
if @post.artist_tags.any?
|
if @post.artist_tags.any?
|
||||||
@@ -64,7 +64,7 @@ class PostPresenter < Presenter
|
|||||||
string << @post.artist_tags.to_sentence
|
string << @post.artist_tags.to_sentence
|
||||||
end
|
end
|
||||||
|
|
||||||
string.join(" ").tr("_", " ")
|
string.empty? ? "##{@post.id}" : string.join(" ").tr("_", " ")
|
||||||
end
|
end
|
||||||
|
|
||||||
def categorized_tag_string
|
def categorized_tag_string
|
||||||
|
|||||||
@@ -95,7 +95,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<% content_for(:page_title) do %>
|
<% content_for(:page_title) do %>
|
||||||
<%= @post.presenter.humanized_categorized_tag_string %> - <%= Danbooru.config.app_name %>
|
<%= @post.presenter.humanized_essential_tag_string %> - <%= Danbooru.config.app_name %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<% content_for(:html_header) do %>
|
<% content_for(:html_header) do %>
|
||||||
|
|||||||
Reference in New Issue
Block a user