Sha256: 2c3f75e155956c518a195be4b575ef775835d28972fbde5f18e71eba0390de4e

Contents?: true

Size: 1.1 KB

Versions: 1

Compression:

Stored size: 1.1 KB

Contents

$('div.btn-group').html('<%= button_group(job_invocation_task_buttons(@job_invocation.task)).html_safe %>');
$('div#status_chart').html('<%=j job_invocation_chart(@job_invocation) %>');
$('div#status').flot_pie();

<% if params[:hosts_needs_refresh] == 'true' && @job_invocation.resolved? %>
  var hosts_tab = $('div#hosts');
  hosts_tab.html('<%=j render('tab_hosts', :job_invocation => @job_invocation, :hosts => @hosts) %>');
  hosts_tab.data('refresh_required', '');
<% end %>

<% ['status', 'actions', 'provider'].each do |attribute| %>
  <% if params["host_ids_needing_#{attribute}_update"].present? %>
    var td_element;
    <% Host.authorized(:view_hosts, Host).where(:id => params["host_ids_needing_#{attribute}_update"]).each do |host| %>
      td_element= $('#<%= dom_id(host) %>-<%= attribute %>');
      td_element.replaceWith('<%=j render("host_#{attribute}_td", :host => host, :task => @job_invocation.sub_task_for_host(host)) %>');
    <% end %>
  <% end %>
<% end %>

<% if @auto_refresh %>
  delayed_refresh($('script#job_invocation_refresh').data('refresh-url'), job_invocation_refresh_data());
<% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
foreman_remote_execution-0.1.2 app/views/job_invocations/show.js.erb