fixes #2558: site map links

This commit is contained in:
r888888888
2015-12-09 15:45:43 -08:00
parent 75327bf963
commit 3bffc67d5a
3 changed files with 12 additions and 5 deletions

View File

@@ -5,7 +5,7 @@
<% @categories.each do |category, saved_searches| %>
<h2>
<% if category.present? %>
<%= link_to category.tr("_", " "), posts_path(:tags => "search:#{category}") %>
<%= link_to_if SavedSearch.posts_search_available?, category.tr("_", " "), posts_path(:tags => "search:#{category}") %>
<% else %>
Uncategorized
<% end %>