1 <div class="panel panel-default">
2 <div class="panel-heading">
4 <div class="col-md-3" style="word-break:break-all;">
5 <h4 class="panel-title">
6 <a class="component-detail-panel" data-toggle="collapse" href="#collapse<%= i %>">
7 <%= current_obj.label %> <span class="caret" href="#collapse<%= i %>"></span>
12 <div class="col-md-2 pipeline-instance-spacing">
13 <%= render partial: 'work_units/progress', locals: {wu: current_obj} %>
16 <% if not current_obj %>
17 <div class="col-md-7"></div>
19 <% walltime = current_obj.walltime %>
20 <% cputime = current_obj.cputime %>
21 <% runningtime = current_obj.runningtime %>
22 <div class="col-md-3">
23 <% if walltime and cputime %>
24 <%= render_runtime([walltime, runningtime].max, false) %>
25 <% if cputime > 0 %> / <%= render_runtime(cputime, false) %> (<%= (cputime/runningtime).round(1) %>⨯)<% end %>
29 <% queuetime = current_obj.queuedtime %>
31 <div class="col-md-3">
32 Queued for <%= render_runtime(queuetime, false) %>.
34 <% elsif current_obj.is_running? %>
35 <div class="col-md-3">
36 <span class="task-summary-status">
37 <%= current_obj.child_summary_str %>
42 <div class="col-md-1 pipeline-instance-spacing">
43 <% if current_obj.can_cancel? and @object.editable? %>
44 <%= form_tag "#{current_obj.uri}/cancel", remote: true, style: "display:inline; padding-left: 1em" do |f| %>
45 <%= hidden_field_tag :return_to, url_for(@object) %>
46 <%= button_tag "Cancel", {class: 'btn btn-xs btn-warning', id: "cancel-child-button"} %>
54 <% content_url = url_for(controller: :work_units, action: :show_child_component, id: @object.uuid, object_type: @object.class.to_s) %>
55 <div id="collapse<%=i%>" class="work-unit-component-detail panel-collapse collapse <%= if expanded then 'in' end %>" content-url="<%=content_url%>" action-data="<%={current_obj_type: current_obj.class.to_s, current_obj_uuid: current_obj.uuid, current_obj_name: current_obj.label, current_obj_parent: current_obj.parent}.to_json%>">
56 <div class="panel-body work-unit-component-detail-body">