% title @job_invocation.description %>
<% stylesheet 'foreman_remote_execution/foreman_remote_execution' %>
<% javascript 'charts', 'foreman_remote_execution/template_invocation' %>
<% javascript *webpack_asset_paths('foreman_remote_execution', :extension => 'js') %>
<%= breadcrumbs name_field: 'description' %>
<% if @job_invocation.task %>
<% title_actions(button_group(job_invocation_task_buttons(@job_invocation.task))) %>
<% end %>
<%= render 'tab_overview', :job_invocation => @job_invocation, :hosts => @hosts %>
<%= render 'tab_preview_templates', :job_invocation => @job_invocation %>
<% unless @job_invocation.recurring_logic.nil? %>
<% if @job_invocation.recurring_logic.try(:task_group) %>
<%= render @job_invocation.recurring_logic.task_group, :task_group => @job_invocation.recurring_logic.try(:task_group) %>
<% end %>
<% end %>
<%= render_tab_content_for(:main_tabs, subject: @job_invocation) %>