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