From 5153c376f1e61d3489e6582b220d75f48b6d10f3 Mon Sep 17 00:00:00 2001 From: albert Date: Sun, 17 Mar 2013 23:03:51 -0400 Subject: [PATCH] hide tag fix for large post counts --- app/views/tags/_secondary_links.html.erb | 4 +++- app/views/tags/index.html.erb | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/app/views/tags/_secondary_links.html.erb b/app/views/tags/_secondary_links.html.erb index 65e8a2977..da7539f60 100644 --- a/app/views/tags/_secondary_links.html.erb +++ b/app/views/tags/_secondary_links.html.erb @@ -7,7 +7,9 @@ <% if @tag %>
  • |
  • <%= link_to "Edit", edit_tag_path(@tag) %>
  • -
  • <%= link_to "Fix", new_tag_correction_path(:tag_id => @tag.id) %>
  • + <% if @tag.post_count < 1_000 %> +
  • <%= link_to "Fix", new_tag_correction_path(:tag_id => @tag.id) %>
  • + <% end %> <% end %> <% end %> diff --git a/app/views/tags/index.html.erb b/app/views/tags/index.html.erb index fa1ad8416..23bc8d295 100644 --- a/app/views/tags/index.html.erb +++ b/app/views/tags/index.html.erb @@ -18,7 +18,9 @@ <%= link_to "edit", edit_tag_path(tag) %> - | <%= link_to "fix", new_tag_correction_path(:tag_id => tag.id) %> + <% if tag.post_count < 1_000 %> + | <%= link_to "fix", new_tag_correction_path(:tag_id => tag.id) %> + <% end %> <% end %>