Hide the More menu if there are no items to show

This commit is contained in:
Eric Davis 2012-01-12 15:00:23 -08:00
parent 4ce3b88473
commit 0407abbd56
1 changed files with 2 additions and 0 deletions

View File

@ -58,6 +58,7 @@
<%= project_content %>
</ul>
</li>
<% if more_top_menu_items.present? || User.current.admin? %>
<li class="drop-down" id="more-menu">
<a class="more" href="#"><%= l(:label_more) %></a>
<ul style="display:none;">
@ -72,6 +73,7 @@
<% end %>
</ul>
</li>
<% end %>
<li>
<%= render_menu_node(help_menu_item) %>
<% unless User.current.logged? %>