Improve sidebar menu for project settings

This commit is contained in:
Dmitriy Zaporozhets 2015-02-23 18:43:39 -08:00
parent a4118ca445
commit 12589d3390
3 changed files with 5 additions and 9 deletions

View File

@ -47,7 +47,7 @@
border-left: 3px solid $style_color;
&.no-highlight {
background: none;
background: none !important;
border: none;
}

View File

@ -6,12 +6,7 @@
%span
Back to project
= nav_link(html_options: {class: "#{project_tab_class} separate-item"}) do
= link_to edit_namespace_project_path(@project.namespace, @project), title: 'Settings', class: "stat-tab tab no-highlight" do
%i.fa.fa-cogs
%span
Settings
%i.fa.fa-angle-down
%li.separate-item
= render 'projects/settings_nav'
@ -98,4 +93,3 @@
%i.fa.fa-cogs
%span
Settings
%i.fa.fa-angle-down

View File

@ -41,6 +41,8 @@ module SharedProjectTab
end
step 'the active main tab should be Settings' do
ensure_active_main_tab('Settings')
within '.nav-sidebar' do
page.should have_content('Back to project')
end
end
end