Sha256: f41217510d062f767bcaa41162ce627815d52a84ec060660d01a41bb299ed3d4

Contents?: true

Size: 1.98 KB

Versions: 1

Compression:

Stored size: 1.98 KB

Contents

<div id="status_chart">
  <%= job_invocation_chart(job_invocation) %>
</div>

<div class="col-md-6 infoblock">
  <h4><%= _('Target hosts') %></h4>
  <% if job_invocation.bookmark.present? %>
    <%= _('Bookmark') %> <%= job_invocation.bookmark.name %><br>
  <% else %>
    <%= _('Manual selection') %>
  <% end %>
  <%= 'using ' + _(Targeting::TYPES[job_invocation.targeting.targeting_type]) %>
  <pre><%= job_invocation.targeting.search_query %></pre>

  <%= _('Evaluated at:') %> <%= job_invocation.targeting.resolved_at %><br>
  <% if job_invocation.template_invocations.size > 1 %>
    <% job_invocation.template_invocations.each do |template_invocation| %>
      <%= host_counter template_invocation.template.provider.humanized_name, ForemanTasks::Task::DynflowTask.for_action(Actions::RemoteExecution::RunHostJob).for_resource(template_invocation).uniq.size %>
    <% end %>
  <% end %>
  <%= host_counter(_('Total hosts'), job_invocation.total_hosts_count) %>
</div>

<div class="col-md-6 infoblock">
  <h4><%= _('Providers and templates') %></h4>
  <% job_invocation.template_invocations.each do |template_invocation| %>
    <h5>
      <b><%= template_invocation.template.name %></b> <%= 'through' %> <%= template_invocation.template.provider.humanized_name %>
    </h5>
    <% target = template_invocation.targeting.hosts.with_os.first || template_invocation.targeting.hosts.first %>
    <%= _('Preview for target %s') % target.try(:name) || 'N/A' %>

    <%= preview_box(template_invocation, target) %>

    <% if template_invocation.input_values.present? %>
      <%= _('following user inputs were provided') %>
      <ul>
        <% template_invocation.input_values.joins(:template_input).each do |input_value| %>
          <li><b><%= input_value.template_input.name %></b>: <%= input_value.value %></li>
        <% end %>
      </ul>
    <% end %>
    <% if template_invocation.effective_user %>
      <b><%= _("Effective user") %></b>: <%= template_invocation.effective_user %>
    <% end %>
  <% end %>
</div>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
foreman_remote_execution-0.1.2 app/views/job_invocations/_tab_overview.html.erb