-<% end %>
-
-<% template = PipelineTemplate.find(@object.pipeline_template_uuid) %>
-<% if template %>
- <h2><%= template.name %></h2>
-<% end %>
-
-<% if @object.active != nil %>
-<table class="table pipeline-components-table">
- <colgroup>
- <col style="width: 15%" />
- <col style="width: 20%" />
- <col style="width: 12%" />
- <col style="width: 8%" />
- <col style="width: 45%" />
- </colgroup>
- <thead>
- <tr>
- <th>
- component
- </th><th>
- script, version
- </th><th>
- progress
- <%= link_to '(refresh)', request.fullpath, class: 'refresh', remote: true, method: 'get' %>
- </th><th>
- </th><th>
- output
- </th>
- </tr>
- </thead>
- <tbody>
- <% render_pipeline_jobs.each do |pj| %>
- <tr>
- <td>
- <% label = if pj[:job].andand[:uuid]
- if pj[:job][:success] == true
- 'label-success'
- elsif pj[:job][:success] == false
- 'label-danger'
- elsif pj[:job][:running] == true
- 'label-info'
- else
- 'label-default'
- end
- else
- 'label-default'
- end %>
- <% if pj[:job].andand[:uuid] %>
- <%= link_to pj[:name], job_url(id: pj[:job][:uuid]), class: "label #{label}" %>
- <% else %>
- <span class="label <%= label %>"><%= pj[:name] %></span>
- <% end %>