mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 18:08:42 -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'>
|
||||
<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>
|
||||
|
||||
<%= yield %>
|
||||
|
|
|
|||
|
|
@ -28,7 +28,9 @@ $redis = Redis.new
|
|||
|
||||
# Sinatra!
|
||||
get '/' do
|
||||
erb :dashboard
|
||||
erb :dashboard, locals: {
|
||||
site_name: config[:config]['site_name'] || '<b>vmware-host-pooler</b>',
|
||||
}
|
||||
end
|
||||
|
||||
get '/dashboard/stats/vcloud/numbers' do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue