improves humanized_essential_tag_string

This commit is contained in:
Toks
2013-04-10 09:12:30 -04:00
parent 20e8d10f44
commit 42d53000e6
2 changed files with 4 additions and 4 deletions

View File

@@ -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

View File

@@ -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 %>