main menu: remove aliases and implications pages.

Remove links to the aliases and implications pages from the main menu.
Put them in the submenu on the /tags page instead.

These pages are too rarely used to deserve being in the toplevel menu.
They also weren't easy to find for non-Builders. The toplevel menu
shouldn't be dependent on user level.
This commit is contained in:
evazion
2020-01-07 11:23:43 -06:00
parent e9b99408f7
commit a4419b1e3d
2 changed files with 3 additions and 5 deletions

View File

@@ -9,10 +9,6 @@
<%= nav_link_to("Notes", notes_path) %>
<%= nav_link_to("Artists", artists_path) %>
<%= nav_link_to("Tags", tags_path) %>
<% if CurrentUser.is_builder? %>
<%= nav_link_to("Aliases", tag_aliases_path) %>
<%= nav_link_to("Implications", tag_implications_path) %>
<% end %>
<%= nav_link_to("Pools", gallery_pools_path) %>
<%= nav_link_to("Wiki", wiki_page_path("help:home")) %>
<%= nav_link_to("Forum", forum_topics_path, :class => (CurrentUser.has_forum_been_updated? ? "forum-updated" : nil)) %>

View File

@@ -1,9 +1,11 @@
<% content_for(:secondary_links) do %>
<%= quick_search_form_for(:name_matches, tags_path, "tags", autocomplete: "tag") %>
<%= subnav_link_to "Listing", tags_path %>
<%= subnav_link_to("Aliases", tag_aliases_path) %>
<%= subnav_link_to("Implications", tag_implications_path) %>
<%= subnav_link_to "Related tags", related_tag_path %>
<%= subnav_link_to "Cheatsheet", wiki_page_path("help:cheatsheet") %>
<%= subnav_link_to "Help", wiki_page_path("help:tags") %>
<% if @tag %>
<li>|</li>
<%= subnav_link_to "Posts (#{@tag.post_count})", posts_path(:tags => @tag.name) %>