From a4419b1e3d8b39807ee7bf51b817aa41cd1ad1fa Mon Sep 17 00:00:00 2001 From: evazion Date: Tue, 7 Jan 2020 11:23:43 -0600 Subject: [PATCH] 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. --- app/views/layouts/_main_links.html.erb | 4 ---- app/views/tags/_secondary_links.html.erb | 4 +++- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/app/views/layouts/_main_links.html.erb b/app/views/layouts/_main_links.html.erb index a16ed243c..42f8a6492 100644 --- a/app/views/layouts/_main_links.html.erb +++ b/app/views/layouts/_main_links.html.erb @@ -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)) %> diff --git a/app/views/tags/_secondary_links.html.erb b/app/views/tags/_secondary_links.html.erb index 8f212fe9a..d0565a47b 100644 --- a/app/views/tags/_secondary_links.html.erb +++ b/app/views/tags/_secondary_links.html.erb @@ -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 %>
  • |
  • <%= subnav_link_to "Posts (#{@tag.post_count})", posts_path(:tags => @tag.name) %>