From 622dae76cc0e9e3c76c5d2ba18efeb139644881e Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Tue, 12 Feb 2013 19:22:40 +0200 Subject: [PATCH] style network graph form a bit --- .../stylesheets/gitlab_bootstrap/common.scss | 1 + app/views/graph/_head.html.haml | 23 ++++++++++++------- 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/app/assets/stylesheets/gitlab_bootstrap/common.scss b/app/assets/stylesheets/gitlab_bootstrap/common.scss index cb292bc7..dcfd610e 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 7e1b4644..fba9a958 100644 --- a/app/views/graph/_head.html.haml +++ b/app/views/graph/_head.html.haml @@ -1,9 +1,16 @@ -%ul.nav.nav-tabs - %li - = 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 +%hr + +.clearfix + .pull-left + = render partial: 'shared/ref_switcher', locals: {destination: 'graph', path: @path} + + .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 +