Skip to content

Commit 98d5ada

Browse files
sdelanoSeth Falcon
authored andcommitted
webui: label and vertically center env selector
1 parent d1b14a1 commit 98d5ada

2 files changed

Lines changed: 13 additions & 3 deletions

File tree

‎chef-server-webui/app/views/layout/application.html.haml‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,9 @@
1919
#header
2020
%h1
2121
= link_to "Chef Server", url(:top)
22-
%select{:name => 'select_environment', :onchange => 'jump(this)', :size => 1}
22+
%label{:for => 'environment-select'} Environment:
23+
%select{:name => 'environment-select', :onchange => 'jump(this)', :size => 1, :class => 'title-select'}
2324
- current_env = session[:environment]
24-
%option{:value => ""} Environments
25-
%option{:value => ""} ------------
2625
%option{:value => url(:environment_select, :environment_id => '_none'), :selected => current_env == nil} None
2726
- @org_environments.each do |env|
2827
%option{:value => url(:environment_select, :environment_id => env), :selected => current_env == env}= env

‎chef-server-webui/public/stylesheets/chef.css‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,3 +175,14 @@ div.tooltip {
175175
table.tooltip {
176176
width: 190px;
177177
}
178+
179+
h1 a, h1 label, h1 .title-select {
180+
display: inline-block;
181+
vertical-align: middle;
182+
}
183+
184+
h1 label {
185+
font-size: 12px;
186+
color: #F7F7F8;
187+
padding-left: 10px;
188+
}

0 commit comments

Comments
 (0)