Sha256: 86264577430fab32f527206dd5116ddcf175af6c6b06f950d73f7621c538c6c2

Contents?: true

Size: 1.82 KB

Versions: 4

Compression:

Stored size: 1.82 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.last_task.output['total_count']) if job_invocation.last_task %>
</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>
    <pre><%= InputTemplateRenderer.new(template_invocation.template, nil, template_invocation).preview %></pre>

    <% 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

4 entries across 4 versions & 1 rubygems

Version Path
foreman_remote_execution-0.0.4 app/views/job_invocations/_tab_overview.html.erb
foreman_remote_execution-0.0.3 app/views/job_invocations/_tab_overview.html.erb
foreman_remote_execution-0.0.2 app/views/job_invocations/_tab_overview.html.erb
foreman_remote_execution-0.0.1 app/views/job_invocations/_tab_overview.html.erb