Sha256: 8c2dfb7f5b6882e28e86c87f7299b849468fbcdc259274b0d6c60ad579a6fa22

Contents?: true

Size: 1.21 KB

Versions: 50

Compression:

Stored size: 1.21 KB

Contents

<%= _("Foreman discovered hosts summary") %>
=================================
<%= _("Discovered hosts from Foreman server at %{foreman_url}") % {:foreman_url => Setting[:foreman_url]} %>

<%= _("Summary from %{time} ago to %{now}") % { :time => @time.in_time_zone, :now => Time.zone.now } %>
<% if @discovered_hosts.any? %>

  <% @discovered_hosts.each do |host| %>
    <%= _('Name') %>: <%= host.to_label %>
    <%= _('Model') %>: <%= host.try(:hardware_model_name) || 'N/A' %>
    <%= _('IP Address') %>: <%= host.ip %>
    <%= _('CPUs') %>: <%= discovery_attribute(host, :cpu_count) %>
    <%= _('Memory') %>: <%= number_to_human_size(discovery_attribute(host, :memory, 0) * 1024 * 1024) %>
    <%= _('Disk count') %> <%= discovery_attribute(host, :disk_count) %>
    <%= _('Disks size') %> <%= number_to_human_size(discovery_attribute(host, :disks_size, 0) * 1024 * 1024) %>

    (<%= discovered_host_url(:id => host, :host => @url.host, :port => @url.port, :only_path => false, :protocol => @url.scheme) %>)
    -
  <% end %>
<% else %>
  <%= _('No new discovered hosts for this period') %>
<% end %>

<%= discovered_hosts_url(:host => @url.host, :port => @url.port, :only_path => false, :protocol => @url.scheme, :search => @query) %>

Version data entries

50 entries across 50 versions & 1 rubygems

Version Path
foreman_discovery-25.0.0 app/views/discovered_mailer/discovered_summary.text.erb
foreman_discovery-24.0.2 app/views/discovered_mailer/discovered_summary.text.erb
foreman_discovery-23.0.2 app/views/discovered_mailer/discovered_summary.text.erb
foreman_discovery-24.0.1 app/views/discovered_mailer/discovered_summary.text.erb
foreman_discovery-24.0.0 app/views/discovered_mailer/discovered_summary.text.erb
foreman_discovery-23.0.1 app/views/discovered_mailer/discovered_summary.text.erb
foreman_discovery-23.0.0 app/views/discovered_mailer/discovered_summary.text.erb
foreman_discovery-22.0.4 app/views/discovered_mailer/discovered_summary.text.erb
foreman_discovery-21.0.5 app/views/discovered_mailer/discovered_summary.text.erb
foreman_discovery-22.0.2 app/views/discovered_mailer/discovered_summary.text.erb
foreman_discovery-21.0.4 app/views/discovered_mailer/discovered_summary.text.erb
foreman_discovery-21.0.3 app/views/discovered_mailer/discovered_summary.text.erb
foreman_discovery-21.0.2 app/views/discovered_mailer/discovered_summary.text.erb
foreman_discovery-19.0.5 app/views/discovered_mailer/discovered_summary.text.erb
foreman_discovery-19.0.4 app/views/discovered_mailer/discovered_summary.text.erb
foreman_discovery-21.0.1 app/views/discovered_mailer/discovered_summary.text.erb
foreman_discovery-19.0.3 app/views/discovered_mailer/discovered_summary.text.erb
foreman_discovery-21.0.0 app/views/discovered_mailer/discovered_summary.text.erb
foreman_discovery-19.0.2 app/views/discovered_mailer/discovered_summary.text.erb
foreman_discovery-20.0.1 app/views/discovered_mailer/discovered_summary.text.erb