Commit 4a344c168360e9494fa2e33f85833e5fee80a5f8

Authored by Dmitriy Zaporozhets
1 parent 68d146b4

Move search to separate layout

app/assets/stylesheets/common.scss
@@ -418,3 +418,7 @@ img.emoji { @@ -418,3 +418,7 @@ img.emoji {
418 overflow: hidden; 418 overflow: hidden;
419 height: 220px; 419 height: 220px;
420 } 420 }
  421 +
  422 +.search-container {
  423 + margin-top: 30px;
  424 +}
app/views/layouts/nav/_dashboard.html.haml
@@ -13,8 +13,6 @@ @@ -13,8 +13,6 @@
13 = link_to merge_requests_dashboard_path do 13 = link_to merge_requests_dashboard_path do
14 Merge Requests 14 Merge Requests
15 %span.count= current_user.cared_merge_requests.opened.count 15 %span.count= current_user.cared_merge_requests.opened.count
16 - = nav_link(path: 'search#show') do  
17 - = link_to "Search", search_path  
18 = nav_link(controller: :help) do 16 = nav_link(controller: :help) do
19 = link_to "Help", help_path 17 = link_to "Help", help_path
20 18
app/views/layouts/search.html.haml 0 → 100644
@@ -0,0 +1,10 @@ @@ -0,0 +1,10 @@
  1 +!!! 5
  2 +%html{ lang: "en"}
  3 + = render "layouts/head", title: "Search"
  4 + %body{class: "#{app_theme} application"}
  5 + = render "layouts/head_panel", title: "Search"
  6 + = render "layouts/flash"
  7 +
  8 + .container.search-container
  9 + .content
  10 + = yield
features/dashboard/active_tab.feature
@@ -17,11 +17,6 @@ Feature: Dashboard active tab @@ -17,11 +17,6 @@ Feature: Dashboard active tab
17 Then the active main tab should be Merge Requests 17 Then the active main tab should be Merge Requests
18 And no other main tabs should be active 18 And no other main tabs should be active
19 19
20 - Scenario: On Dashboard Search  
21 - Given I visit dashboard search page  
22 - Then the active main tab should be Search  
23 - And no other main tabs should be active  
24 -  
25 Scenario: On Dashboard Help 20 Scenario: On Dashboard Help
26 Given I visit dashboard help page 21 Given I visit dashboard help page
27 Then the active main tab should be Help 22 Then the active main tab should be Help
features/steps/dashboard/dashboard_active_tab.rb
@@ -15,10 +15,6 @@ class DashboardActiveTab < Spinach::FeatureSteps @@ -15,10 +15,6 @@ class DashboardActiveTab < Spinach::FeatureSteps
15 ensure_active_main_tab('Merge Requests') 15 ensure_active_main_tab('Merge Requests')
16 end 16 end
17 17
18 - Then 'the active main tab should be Search' do  
19 - ensure_active_main_tab('Search')  
20 - end  
21 -  
22 Then 'the active main tab should be Help' do 18 Then 'the active main tab should be Help' do
23 ensure_active_main_tab('Help') 19 ensure_active_main_tab('Help')
24 end 20 end