8784: Fix test for latest firefox.
[arvados.git] / apps / workbench / app / views / work_units / _show_component.html.erb
1 <%# Work unit status %>
2
3 <div class="row">
4   <div class="col-md-4">
5     <% if wu.is_paused? %>
6       <p>
7         This <%= wu.title %> is paused. Children that were running
8         were cancelled and no new processes will be submitted.
9       </p>
10     <% end %>
11
12     <%= raw(wu.show_runtime) %>
13   </div>
14   <%# Need additional handling for main object display  %>
15   <% if @object.uuid == wu.uuid %>
16     <div class="col-md-3">
17       <% if wu.is_running? and wu.child_summary_str %>
18         <%= wu.child_summary_str %>
19       <% end %>
20     </div>
21     <div class="col-md-3">
22       <%= render partial: 'work_units/progress', locals: {wu: wu} %>
23     </div>
24     <div class="col-md-2">
25       <% if wu.can_cancel? and @object.editable? %>
26         <% confirm = if wu.confirm_cancellation then {confirm: wu.confirm_cancellation} else {} end %>
27         <%= form_tag "#{wu.uri}/cancel", remote: true, style: "display:inline; padding-left: 1em" do |f| %>
28           <%= hidden_field_tag :return_to, url_for(@object) %>
29           <%= button_tag "Cancel", {class: 'btn btn-xs btn-warning', id: "cancel-obj-button", data: confirm} %>
30         <% end %>
31       <% end %>
32     </div>
33   <% end %>
34 </div>
35
36 <p>
37   <%= render(partial: 'work_units/component_detail', locals: {current_obj: wu}) %>
38 </p>
39
40 <%# Work unit children %>
41 <% if wu.has_unreadable_children %>
42   <%= render(partial: "pipeline_instances/show_components_json",
43              locals: {error_name: "Unreadable components", backtrace: nil, wu: wu}) %>
44 <% else %>
45   <% wu.children.each do |c| %>
46     <%= render(partial: 'work_units/show_child', locals: {current_obj: c, i: (c.uuid || rand(2**128).to_s(36)), expanded: false}) %>
47   <% end %>
48 <% end %>