Sha256: 9e074c5073bbd15deb174479fa24b5a282b84dc7bf525f59338db1e67af5b484

Contents?: true

Size: 1.51 KB

Versions: 5

Compression:

Stored size: 1.51 KB

Contents

<% title @vm.name %>

<div class='span12'>
  <table class="table table-bordered table-striped">
    <tr><th colspan="2"><%= _('Properties') -%></th></tr>
    <tr>
      <td><%= _('Name') -%></td>
      <td><%= @vm.name %></td>
    </tr>

    <tr>
      <td><%= _('Machine Type') -%></td>
      <td><%= @vm.domain_type %> / <%= @vm.arch %></td>
    </tr>

    <tr>
      <td><%= _('VCPU(s)') -%></td>
      <td><%= @vm.cpus %></td>
    </tr>

    <tr>
      <td><%= _('UUID') -%></td>
      <td><%= @vm.uuid %></td>
    </tr>
    <tr>
      <td><%= _('Memory') -%></td>
      <td><%= number_to_human_size @vm.max_memory_size*1024 %> <%= "(" + _("Allocated") + ": #{number_to_human_size @vm.memory_size*1024})" %></td>
    </tr>

    <tr>
      <td><%= _('Display') -%></td>
      <td><%= @vm.display[:type] %> (<%= @vm.display[:port] %>)</td>
    </tr>
    <% @vm.nics.each do |nic| -%>
        <tr>
          <td><%= _('NIC') -%></td>
          <td><%= "#{nic.bridge} - #{nic.mac} (#{nic.model})" %></td>
        </tr>
    <% end -%>

    <% @vm.volumes.each do |vol| -%>
        <tr>
          <td><%= _('Disk') -%></td>
          <td><%= _("using %{allocation} GB out of %{capacity} GB (%{pool_name} storage pool - %{path})") % { :allocation => vol.allocation, :capacity => vol.capacity, :pool_name => vol.pool_name, :path => vol.path } %></td>
        </tr>
    <% end -%>

    <tr>
      <td><%= _('Running on') -%></td>
      <td><%= link_to @compute_resource, compute_resource_path(@compute_resource) %></td>
    </tr>
  </table>
</div>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
foreman_discovery-1.0.0 test/foreman_app/app/views/compute_resources_vms/show/_libvirt.html.erb
foreman_discovery-1.0.0.rc4 test/foreman_app/app/views/compute_resources_vms/show/_libvirt.html.erb
foreman_discovery-1.0.0.rc3 test/foreman_app/app/views/compute_resources_vms/show/_libvirt.html.erb
foreman_discovery-1.0.0.rc2 test/foreman_app/app/views/compute_resources_vms/show/_libvirt.html.erb
foreman_discovery-1.0.0.rc1 test/foreman_app/app/views/compute_resources_vms/show/_libvirt.html.erb