<% if job_invocation.targeting.resolved_at %> <% job_invocation.targeting.hosts.each do |host| %> <% task = job_invocation.sub_tasks.joins(:locks).where("#{ForemanTasks::Lock.table_name}.resource_type" => 'Host::Managed', "#{ForemanTasks::Lock.table_name}.resource_id" => host.id).first %> <% end %>
<%= _('Host') %> <%= _('Provider') %> <%= _('Status') %> <%= _('Actions') %>
<%= link_to_if_authorized host.name, hash_for_host_path(host).merge(:auth_object => host, :permission => :view_hosts) %> <%= remote_execution_provider_for(task) %> <%= template_invocation_status(task) %> <%= action_buttons(template_invocation_actions(task, host)) %>
<% else %>
<%= _("The dynamic query '#{job_invocation.targeting.search_query}' was not resolved yet. The list of hosts to which it would resolve now can be seen") %> <%= link_to('here.', hosts_url(:search => job_invocation.targeting.search_query)) %>
<% end %>