From 0407abbd5647514e0e192a8d31d441e857ff8b0f Mon Sep 17 00:00:00 2001 From: Eric Davis <edavis@littlestreamsoftware.com> Date: Thu, 12 Jan 2012 15:00:23 -0800 Subject: [PATCH] Hide the More menu if there are no items to show --- app/views/layouts/base.rhtml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/views/layouts/base.rhtml b/app/views/layouts/base.rhtml index 20e1f7439..4d34d8d88 100644 --- a/app/views/layouts/base.rhtml +++ b/app/views/layouts/base.rhtml @@ -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? %> -- GitLab