Sha256: b07dd293b6c4b335d0234bc793d83f9a6eb00cb9093c047d2e1571311263377a
Contents?: true
Size: 1.49 KB
Versions: 6
Compression:
Stored size: 1.49 KB
Contents
<% if job_invocation.last_task.present? %> <table class="table table-bordered table-striped table-condensed"> <thead> <tr> <th><%= _('Host') %></th> <th><%= _('Provider') %></th> <th><%= _('Status') %></th> <th><%= _('Actions') %></th> </tr> </thead> <tbody> <% job_invocation.last_task.sub_tasks.for_action_types('Actions::RemoteExecution::RunHostJob').each do |task| %> <tr> <% template_invocation = task.locks.where(:resource_type => 'TemplateInvocation').first.try(:resource) %> <% if (host = task.locks.where(:resource_type => 'Host::Managed').first.try(:resource)) %> <td><%= link_to_if_authorized host.name, hash_for_host_path(host).merge(:auth_object => host, :permission => :view_hosts) %></td> <% else %> <td><%= _('host not linked') %></td> <% end %> <td><%= template_invocation.nil? ? _('N/A') : _(RemoteExecutionProvider.provider_for(template_invocation.template.provider_type)) %></td> <td><%= template_invocation_status(task) %></td> <td><%= action_buttons( display_link_if_authorized(_("Details"), hash_for_foreman_tasks_task_path(:id => task).merge(:auth_object => host, :permission => :view_foreman_tasks)) ) %></td> </tr> <% end %> </tbody> </table> <% else %> <%= _('No host could be found, this can happen if the action was not executed yet. Try visiting this page later.') %> <% end %>
Version data entries
6 entries across 6 versions & 1 rubygems