nav menu: remove duplicate "More »" link.

Remove a second hidden "More »" link from the nav menu. This was
leftover code first added in f2f524b87 and later reverted in 68161f7b8.
This commit is contained in:
evazion
2018-08-26 12:55:50 -05:00
parent 79961c8ed9
commit 8ccc238791
5 changed files with 1 additions and 23 deletions

View File

@@ -14,10 +14,6 @@ NewsUpdate.initialize = function() {
$("#news-updates").hide();
Cookie.put("news-ticker", key);
// need to reset the more link
var $site_map_link = $("#site-map-link");
$("#more-links").hide().offset({top: $site_map_link.offset().top + $site_map_link.height() + 10, left: $site_map_link.offset().left});
return false;
});
}

View File

@@ -84,14 +84,3 @@ footer#page-footer {
div.clearfix {
clear: both;
}
div#more-links {
z-index: 5000;
position: absolute;
background: white;
border: 1px solid #999;
width: 8em;
line-height: 1.3em;
padding: 0.2em 0.6em;
@include box-shadow(2px 2px 2px #ccc);
}

View File

@@ -19,5 +19,5 @@
<% if CurrentUser.is_moderator? %>
<%= nav_link_to("Dashboard", moderator_dashboard_path) %>
<% end %>
<%= nav_link_to("More&nbsp;&raquo;".html_safe, site_map_path, :id => "site-map-link") %>
<%= nav_link_to("More&nbsp;&raquo;".html_safe, site_map_path) %>
</menu>

View File

@@ -1,5 +0,0 @@
<div id="more-links" style="display: none;">
<ul>
<%= nav_link_to("More &raquo;".html_safe, site_map_path) %>
</ul>
</div>

View File

@@ -101,8 +101,6 @@
<%= render "layouts/main_links" %>
<%= yield :secondary_links %>
</nav>
<%= render "layouts/more_links" %>
</header>
<div id="page">