<%= main_menu %>
+ <%= yield :main_menu %>
+ <% if display_sidebar %>
<%= expand_current_menu %>
- <% end %>
<%= yield :sidebar %>
<%= call_hook :view_layouts_base_sidebar %>
+ <% end %>
" id="content">
<%= render_flash_messages %>
diff --git a/public/stylesheets/application.css b/public/stylesheets/application.css
index a73d3430..fa3a9c76 100644
--- a/public/stylesheets/application.css
+++ b/public/stylesheets/application.css
@@ -2473,7 +2473,6 @@ a.has-thumb img {
}
/* Make icons non repeating */
-#main-menu #admin-menu ul li a, #main-menu #admin-menu a:hover {padding: 0 0 0 24px; background-repeat: no-repeat !important; }
#more-menu.drop-down ul li a.projects { border-top:1px solid #555; }
diff --git a/test/integration/layout_test.rb b/test/integration/layout_test.rb
index cd19fda4..fccc6d4e 100644
--- a/test/integration/layout_test.rb
+++ b/test/integration/layout_test.rb
@@ -23,7 +23,7 @@ class LayoutTest < ActionController::IntegrationTest
assert_response :not_found
# UsersController uses the admin layout by default
- assert_select "#admin-menu", :count => 0
+ assert_select "#main-menu", :count => 0
end
test "browsing to an unauthorized page should render the base layout" do
@@ -33,7 +33,7 @@ class LayoutTest < ActionController::IntegrationTest
get "/admin"
assert_response :forbidden
- assert_select "#admin-menu", :count => 0
+ assert_select "#main-menu", :count => 0
end
def test_top_menu_navigation_not_visible_when_login_required