Advertise filters param in discovery doc.
[arvados.git] / apps / workbench / app / views / pipeline_instances / _show_components.html.erb
1 <% content_for :css do %>
2   .pipeline_color_legend {
3     padding-left: 1em;
4     padding-right: 1em;
5   }
6 table.pipeline-components-table thead th {
7   text-align: bottom;
8 }
9 table.pipeline-components-table div.progress {
10   margin-bottom: 0;
11 }
12 <% end %>
13 <br />
14
15 <table class="table pipeline-components-table">
16   <colgroup>
17     <col width="15%" />
18     <col width="15%" />
19     <col width="35%" />
20     <col width="35%" />
21   </colgroup>
22   <thead>
23     <tr>
24       <th>
25         component
26       </th><th>
27         progress
28         <%= link_to '(refresh)', request.fullpath, class: 'refresh', remote: true, method: 'get' %>
29       </th><th>
30         script, version
31       </th><th>
32         output
33       </th>
34     </tr>
35   </thead>
36   <tbody>
37     <% render_pipeline_jobs.each do |pj| %>
38     <tr>
39       <td>
40         <% if pj[:job].andand[:uuid] %>
41         <%= link_to pj[:name], job_url(id: pj[:job][:uuid]) %>
42         <% else %>
43         <%= pj[:name] %>
44         <% end %>
45       </td><td>
46         <%= pj[:progress_bar] %>
47         <% if pj[:job].andand[:cancelled_at] %>
48         <span class="pull-right label label-warning">cancelled</span>
49         <% elsif pj[:failed] %>
50         <span class="pull-right label label-warning">failed</span>
51         <% elsif pj[:result] == 'queued' %>
52         <span class="pull-right label">queued</span>
53         <% end %>
54       </td><td>
55         <%= pj[:script] %>
56         <br /><span class="deemphasize"><%= pj[:script_version] %></span>
57       </td><td>
58         <%= link_to_if_arvados_object pj[:output] %>
59       </td>
60     </tr>
61     <% end %>
62   </tbody>
63   <tfoot>
64     <tr><td colspan="4"></td></tr>
65   </tfoot>
66 </table>
67
68 <% if @object.active %>
69 <% content_for :js do %>
70 setInterval(function(){$('a.refresh').click()}, 30000);
71 <% end %>
72 <% end %>
73
74 <pre><%= JSON.pretty_generate @object.attributes %></pre>