Configurable site name in dashboard

This commit is contained in:
Scott Schneider 2014-02-04 11:31:58 -08:00
parent ab450662cc
commit 7c4c65ebf1
2 changed files with 4 additions and 2 deletions

View file

@ -18,7 +18,7 @@
<div id='header'> <div id='header'>
<embed src='/img/logo.jpg' width='216px' height='162px' class='logo' /> <embed src='/img/logo.jpg' width='216px' height='162px' class='logo' />
<div class='text'><b>vmware-host-pooler</b></div> <div class='text'><%= site_name %></div>
</div> </div>
<%= yield %> <%= yield %>

View file

@ -28,7 +28,9 @@ $redis = Redis.new
# Sinatra! # Sinatra!
get '/' do get '/' do
erb :dashboard erb :dashboard, locals: {
site_name: config[:config]['site_name'] || '<b>vmware-host-pooler</b>',
}
end end
get '/dashboard/stats/vcloud/numbers' do get '/dashboard/stats/vcloud/numbers' do