This also requires replacing CurrentUser.name with CurrentUser.user.name because the `name` method had a conflict with CurrentAttributes.
23 lines
1.0 KiB
Plaintext
23 lines
1.0 KiB
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?(CurrentUser.user) %>
|
|
<%= subnav_link_to "Recommended", recommended_posts_path(search: { user_name: CurrentUser.user.name }) %>
|
|
<% end %>
|
|
<% if policy(Favorite).create? %>
|
|
<%= subnav_link_to "Favorites", posts_path(tags: "ordfav:#{CurrentUser.user.name}") %>
|
|
<% end %>
|
|
<% if policy(FavoriteGroup).create? %>
|
|
<%= subnav_link_to "Fav groups", favorite_groups_path(search: { creator_name: CurrentUser.user.name }) %>
|
|
<% end %>
|
|
<% if policy(SavedSearch).create? %>
|
|
<%= subnav_link_to "Saved searches", posts_path(tags: "search:all") %>
|
|
<% end %>
|
|
<%= subnav_link_to "Changes", post_versions_path %>
|
|
<% if policy(PostApproval).create? %>
|
|
<%= subnav_link_to "Modqueue", modqueue_index_path %>
|
|
<% end %>
|
|
<%= subnav_link_to "Help", wiki_page_path("help:posts") %>
|
|
<% end %>
|