2872: Disable chooser OK button until selection is made, update run-pipeline wording.
[arvados.git] / apps / workbench / app / views / application / _show_advanced_metadata.html.erb
1 <% outgoing = Link.where(tail_uuid: @object.uuid) %>
2 <% incoming = Link.where(head_uuid: @object.uuid) %>
3
4 <% if (outgoing | incoming).any? %>
5 <table class="table topalign">
6   <colgroup>
7     <col width="20%" />
8     <col width="10%" />
9     <col width="10%" />
10     <col width="20%" />
11     <col width="20%" />
12     <col width="20%" />
13   </colgroup>
14   <thead>
15     <tr>
16       <th></th>
17       <th>link_class</th>
18       <th>name</th>
19       <th>tail</th>
20       <th>head</th>
21       <th>properties</th>
22     </tr>
23   </thead>
24   <tbody>
25     <% (outgoing | incoming).each do |link| %>
26       <tr>
27         <td>
28           <%= render partial: 'show_object_button', locals: { object: link, size: 'xs' } %>
29           <span class="arvados-uuid"><%= link.uuid %></span>
30         </td>
31         <td><%= link.link_class %></td>
32         <td><%= link.name %></td>
33         <td><%= link.tail_uuid == object.uuid ? 'this' : (render partial: 'application/arvados_attr_value', locals: { obj: link, attr: "tail_uuid", attrvalue: link.tail_uuid, editable: false }) %></td>
34         <td><%= link.head_uuid == object.uuid ? 'this' : (render partial: 'application/arvados_attr_value', locals: { obj: link, attr: "head_uuid", attrvalue: link.head_uuid, editable: false }) %></td>
35         <td><%= render partial: 'application/arvados_attr_value', locals: { obj: link, attr: "properties", attrvalue: link.properties, editable: false } %></td>
36       </tr>
37     <% end %>
38   </tbody>
39 </table>
40 <% else %>
41 <span class="deemphasize">
42   (No metadata links found)
43 </span>
44 <% end %>