* Always display 'Saved searches' link in subnav bar, even if the user hasn't created any saved searches yet. * Eliminate use of `has_saved_searches` bitpref on users.
19 lines
888 B
Plaintext
19 lines
888 B
Plaintext
<% content_for(:secondary_links) do %>
|
|
<%= subnav_link_to "Listing", posts_path %>
|
|
<%= subnav_link_to "Upload", new_upload_path %>
|
|
<%= subnav_link_to "Hot", posts_path(:tags => "order:rank", :d => "1") %>
|
|
<% if RecommenderService.available_for_user? %>
|
|
<%= subnav_link_to "Recommended", recommended_posts_path(context: "user") %>
|
|
<% end %>
|
|
<% unless CurrentUser.is_anonymous? %>
|
|
<%= subnav_link_to "Favorites", posts_path(tags: "ordfav:#{CurrentUser.user.name}") %>
|
|
<%= subnav_link_to "Fav groups", favorite_groups_path %>
|
|
<%= subnav_link_to "Saved searches", posts_path(tags: "search:all") %>
|
|
<% end %>
|
|
<%= subnav_link_to "Changes", post_versions_path %>
|
|
<% if CurrentUser.can_approve_posts? %>
|
|
<%= subnav_link_to "Moderate", moderator_post_queue_path %>
|
|
<% end %>
|
|
<%= subnav_link_to "Help", wiki_pages_path(:title => "help:posts") %>
|
|
<% end %>
|