mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 10:08:40 -05:00
Configurable site name in dashboard
This commit is contained in:
parent
ab450662cc
commit
7c4c65ebf1
2 changed files with 4 additions and 2 deletions
|
|
@ -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 %>
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue