Project

General

Profile

« Previous | Next » 

Revision 40df7dfb

Added by Daniel Lobato Garcia about 11 years ago

  • ID 40df7dfbfcde38f06d133fea97f0d30904155916

fixes #426 expose BMC information in foreman UI

Signed-off-by: Ohad Levy <>

This patch also adds an abstracted power management class for both VM
and BM

View differences:

app/views/hosts/show.html.erb
<% if @vm %>
<li><a href="#vm" data-toggle="tab"><%= _('VM') %></a></li>
<% end %>
<% if @host.bmc_available? %>
<li><a href="#bmc" data-toggle="tab"><%= _('BMC') %></a></li>
<% end %>
</ul>
<div id="myTabContent" class="tab-content">
<div class="tab-pane active in" id="properties">
......
<%= render("compute_resources_vms/show/#{@host.compute_resource.provider.downcase}") rescue nil %>
<% end %>
</div>
<% if @host.bmc_available? %>
<div id="bmc" class="tab-pane" data-ajax-url=<%= bmc_host_path(@host) %>>
<p id="spinner">
<%= image_tag '/assets/spinner.gif' %>
<%= _('Loading BMC information ...') %>
</p>
</div>
<% end %>
</div>
</div>

Also available in: Unified diff