artists/tags subnav: prefer direct tag count over Post#fast_count.
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
<%= subnav_link_to "URLs", artist_urls_path %>
|
||||
<% if @artist && !@artist.new_record? %>
|
||||
<li>|</li>
|
||||
<%= subnav_link_to "Posts (#{Post.fast_count(@artist.name)})", posts_path(:tags => @artist.name) %>
|
||||
<%= subnav_link_to "Posts (#{@artist.tag.try(:post_count).to_i})", posts_path(:tags => @artist.name) %>
|
||||
<%= subnav_link_to "Show", artist_path(@artist) %>
|
||||
<% if CurrentUser.is_member? %>
|
||||
<%= subnav_link_to "Edit", edit_artist_path(@artist), :"data-shortcut" => "e" %>
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
<%= subnav_link_to "Help", wiki_pages_path(:search => {:title => "help:tags"}) %>
|
||||
<% if @tag %>
|
||||
<li>|</li>
|
||||
<%= subnav_link_to "Posts (#{Post.fast_count(@tag.name)})", posts_path(:tags => @tag.name) %>
|
||||
<%= subnav_link_to "Posts (#{@tag.post_count})", posts_path(:tags => @tag.name) %>
|
||||
<%= subnav_link_to "Edit", edit_tag_path(@tag) %>
|
||||
<% if @tag.post_count < 1_000 %>
|
||||
<%= subnav_link_to "Fix", new_tag_correction_path(:tag_id => @tag.id) %>
|
||||
|
||||
Reference in New Issue
Block a user