diff --git a/app/views/admin/_menu.rhtml b/app/views/admin/_menu.rhtml index 2ac62c2f..8ce307c1 100644 --- a/app/views/admin/_menu.rhtml +++ b/app/views/admin/_menu.rhtml @@ -1,3 +1 @@ -
- <%= render_menu :admin_menu %> -
+<%= render_menu :admin_menu %> diff --git a/app/views/layouts/base.rhtml b/app/views/layouts/base.rhtml index b1239df8..324eb3da 100644 --- a/app/views/layouts/base.rhtml +++ b/app/views/layouts/base.rhtml @@ -112,18 +112,19 @@ <% display_sidebar = false %> <% end %>
"> - <% if display_sidebar %> <%= expand_current_menu %> - <% 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