From 75327bf963f3bb863f0a9f40140d3b8e8c12f402 Mon Sep 17 00:00:00 2001 From: r888888888 Date: Tue, 8 Dec 2015 15:45:10 -0800 Subject: [PATCH] only show searches link if reportbooru is defined --- app/views/posts/partials/common/_secondary_links.html.erb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/views/posts/partials/common/_secondary_links.html.erb b/app/views/posts/partials/common/_secondary_links.html.erb index 02a5c7c2f..7b14a4ecf 100644 --- a/app/views/posts/partials/common/_secondary_links.html.erb +++ b/app/views/posts/partials/common/_secondary_links.html.erb @@ -4,7 +4,9 @@
  • <%= link_to "Upload", new_upload_path %>
  • <%= link_to "Popular", popular_explore_posts_path %>
  • <%= link_to "Hot", posts_path(:tags => "order:rank") %>
  • -
  • <%= link_to "Searches", searches_explore_posts_path %>
  • + <% if Danbooru.config.report_server %> +
  • <%= link_to "Searches", searches_explore_posts_path %>
  • + <% end %> <% unless CurrentUser.is_anonymous? %>
  • <%= link_to "Favorites", favorites_path %>
  • <%= link_to "Favorite groups", favorite_groups_path %>