summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/assets/stylesheets/gitlab_bootstrap/common.scss1
-rw-r--r--app/views/graph/_head.html.haml21
2 files changed, 15 insertions, 7 deletions
diff --git a/app/assets/stylesheets/gitlab_bootstrap/common.scss b/app/assets/stylesheets/gitlab_bootstrap/common.scss
index cb292bc711f..dcfd610e2c4 100644
--- a/app/assets/stylesheets/gitlab_bootstrap/common.scss
+++ b/app/assets/stylesheets/gitlab_bootstrap/common.scss
@@ -20,6 +20,7 @@
.hint { font-style: italic; color: #999; }
.light { color: #888 }
.tiny { font-weight: normal }
+.vtop { vertical-align: top; }
/** ALERT MESSAGES **/
diff --git a/app/views/graph/_head.html.haml b/app/views/graph/_head.html.haml
index 7e1b46446af..fba9a958a19 100644
--- a/app/views/graph/_head.html.haml
+++ b/app/views/graph/_head.html.haml
@@ -1,9 +1,16 @@
-%ul.nav.nav-tabs
- %li
+%h3.page_title Project Network Graph
+%hr
+
+.clearfix
+ .pull-left
= render partial: 'shared/ref_switcher', locals: {destination: 'graph', path: @path}
- %li.pull-right.search
- = form_tag project_graph_path(@project, params[:id]), method: :get, class: 'navbar-form' do |f|
- = label_tag :search , "Looking for commit:"
- = text_field_tag :q, @q, placeholder: "Input SHA", class: "search-input"
-%h3.page_title Project Network Graph
+ .search.pull-right
+ = form_tag project_graph_path(@project, params[:id]), method: :get do |f|
+ .control-group
+ = label_tag :search , "Looking for commit:", class: 'control-label light'
+ .controls
+ = text_field_tag :q, @q, placeholder: "Input SHA", class: "search-input xlarge"
+ = button_tag type: 'submit', class: 'btn vtop' do
+ %i.icon-search
+