Sha256: 5ee870664ec10c1879b6cf69fce90896aa2837f8f3d02b6f7317031881987853

Contents?: true

Size: 1.9 KB

Versions: 5

Compression:

Stored size: 1.9 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 _(RemoteExecutionProvider.provider_for(template_invocation.template.provider_type)), 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' %> <%= _(RemoteExecutionProvider.provider_for(template_invocation.template.provider_type)) %>
    </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 %>
  <% end %>
</div>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
foreman_remote_execution-0.1.1 app/views/job_invocations/_tab_overview.html.erb
foreman_remote_execution-0.1.0 app/views/job_invocations/_tab_overview.html.erb
foreman_remote_execution-0.0.10 app/views/job_invocations/_tab_overview.html.erb
foreman_remote_execution-0.0.8 app/views/job_invocations/_tab_overview.html.erb
foreman_remote_execution-0.0.7 app/views/job_invocations/_tab_overview.html.erb