Advertise filters param in discovery doc.
[arvados.git] / apps / workbench / app / views / pipeline_templates / _show_attributes.html.erb
1 <table class="table topalign">
2   <thead>
3   </thead>
4   <tbody>
5     <% @object.attributes_for_display.each do |attr, attrvalue| %>
6     <% if attr == 'components' and attrvalue.is_a? Hash and attrvalue[:steps].is_a? Array %>
7
8     <tr><td>components[steps]</td><td>
9         <table class="table">
10           <% attrvalue[:steps].each_with_index do |s, i| %>
11           <tr>
12             <td><%= i %></td>
13             <% %w(name function min_revision max_steps_per_node params).each do |key| %>
14             <td>
15               <% if key == 'params' %>
16               <% s[key.to_sym].each do |p| %>
17               <%= p[:name] %>
18               <% if p[:data_locator] || p[:value] %>
19               &larr; <%= p[:data_locator] || p[:value] %>
20               <% end %>
21               <%= '(optional)' if p[:optional] %>
22               <br />
23               <% end %>
24               <% else %>
25               <%= s[key.to_sym] %>
26               <% end %>
27             </td>
28             <% end %>
29           </tr>
30           <% end %>
31         </table>
32     </td></tr>
33
34     <% else %>
35     <%= render partial: 'application/arvados_object_attr', locals: { attr: attr, attrvalue: attrvalue } %>
36     <% end %>
37     <% end %>
38   </tbody>
39 </table>