nav menu: add html ids to secondary nav menu links (#3844).
This commit is contained in:
@@ -1,22 +1,22 @@
|
||||
<% content_for(:secondary_links) do %>
|
||||
<menu>
|
||||
<li><%= link_to "Listing", posts_path %></li>
|
||||
<li id="secondary-links-posts-upload" class="nonessential"><%= link_to "Upload", new_upload_path %></li>
|
||||
<li id="secondary-links-posts-hot"><%= link_to "Hot", posts_path(:tags => "order:rank", :d => "1") %></li>
|
||||
<%= 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? %>
|
||||
<li><%= link_to "Recommended", recommended_posts_path(context: "user") %></li>
|
||||
<%= subnav_link_to "Recommended", recommended_posts_path(context: "user") %>
|
||||
<% end %>
|
||||
<% unless CurrentUser.is_anonymous? %>
|
||||
<li id="secondary-links-posts-favorites"><%= link_to "Favorites", favorites_path %></li>
|
||||
<li id="secondary-links-posts-favorite-groups"><%= link_to "Fav groups", favorite_groups_path %></li>
|
||||
<%= subnav_link_to "Favorites", favorites_path %>
|
||||
<%= subnav_link_to "Fav groups", favorite_groups_path %>
|
||||
<% if CurrentUser.has_saved_searches? %>
|
||||
<li id="secondary-links-posts-saved-searches"><%= link_to "Saved searches", posts_path(:tags => "search:all") %></li>
|
||||
<%= subnav_link_to "Saved searches", posts_path(:tags => "search:all") %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
<li id="secondary-links-posts-changes" class="nonessential"><%= link_to "Changes", post_versions_path %></li>
|
||||
<%= subnav_link_to "Changes", post_versions_path %>
|
||||
<% if CurrentUser.can_approve_posts? %>
|
||||
<li id="secondary-links-posts-moderate" class="nonessential"><%= link_to "Moderate", moderator_post_queue_path %></li>
|
||||
<%= subnav_link_to "Moderate", moderator_post_queue_path %>
|
||||
<% end %>
|
||||
<li id="secondary-links-posts-help" class="nonessential"><%= link_to "Help", wiki_pages_path(:title => "help:posts") %></li>
|
||||
<%= subnav_link_to "Help", wiki_pages_path(:title => "help:posts") %>
|
||||
</menu>
|
||||
<% end %>
|
||||
|
||||
Reference in New Issue
Block a user