revert nested navlinks

This commit is contained in:
albert
2013-02-19 12:59:59 -05:00
parent dbb0808eaf
commit 68161f7b85
3 changed files with 10 additions and 30 deletions

View File

@@ -3,26 +3,6 @@ $(function() {
$(".striped tbody tr:even").addClass("even");
$(".striped tbody tr:odd").addClass("odd");
// More link
if ($("#site-map-link").length > 0) {
$("#site-map-link").click(function(e) {
$("#more-links").toggle();
e.preventDefault();
e.stopPropagation();
});
$("#more-links").show();
$("#more-links").position({
of: $("#site-map-link"),
my: "left top",
at: "left top"
}).hide();
$(document).click(function(e) {
$("#more-links").hide();
});
}
// Account notices
$("#hide-sign-up-notice").click(function(e) {
$("#sign-up-notice").hide();

View File

@@ -9,5 +9,15 @@
<%= nav_link_to("Notes", notes_path(:group_by => "post")) %>
<%= nav_link_to("Wiki", wiki_pages_path(:title => "help:home")) %>
<%= nav_link_to("Forum", forum_topics_path, :class => (CurrentUser.user.has_forum_been_updated? ? "forum-updated" : nil)) %>
<%= nav_link_to("Artists", artists_path(:order => "date")) %>
<%= nav_link_to("Tags", tags_path(:order => "date")) %>
<% if CurrentUser.is_moderator? %>
<%= nav_link_to("Aliases", tag_aliases_path) %>
<%= nav_link_to("Implications", tag_implications_path) %>
<% end %>
<%= nav_link_to("Pools", pools_path) %>
<% if CurrentUser.is_janitor? %>
<%= nav_link_to("Dashboard", moderator_dashboard_path) %>
<% end %>
<%= nav_link_to("More &raquo;".html_safe, site_map_path, :id => "site-map-link") %>
</menu>

View File

@@ -1,15 +1,5 @@
<div id="more-links" style="display: none;">
<ul>
<%= nav_link_to("Artists", artists_path(:order => "date")) %>
<%= nav_link_to("Tags", tags_path(:order => "date")) %>
<% if CurrentUser.is_moderator? %>
<%= nav_link_to("Aliases", tag_aliases_path) %>
<%= nav_link_to("Implications", tag_implications_path) %>
<% end %>
<%= nav_link_to("Pools", pools_path) %>
<% if CurrentUser.is_janitor? %>
<%= nav_link_to("Dashboard", moderator_dashboard_path) %>
<% end %>
<%= nav_link_to("More &raquo;".html_safe, site_map_path) %>
</ul>
</div>