Fix 2.4.2 upgrade notes formatting refs #19330
[arvados.git] / apps / workbench / app / views / pipeline_instances / _show_components_editable.html.erb
1 <%# Copyright (C) The Arvados Authors. All rights reserved.
2
3 SPDX-License-Identifier: AGPL-3.0 %>
4
5 <table class="table pipeline-components-table" style="margin-top: -.1em">
6   <colgroup>
7     <col style="width: 20%" />
8     <col style="width: 20%" />
9     <col style="width: 20%" />
10     <col style="width: 40%" />
11   </colgroup>
12
13   <thead>
14     <tr>
15       <th>
16         component
17       </th><th>
18         script
19       </th><th>
20         parameter
21       </th><th>
22         value
23       </th>
24     </tr>
25   </thead>
26   <tbody>
27     <% @object.components.each do |k, component| %>
28       <% next if !component %>
29       <tr>
30         <td><%= k %></td>
31
32         <td><%= component[:script] %></td>
33
34         <td>script version</td>
35
36         <td>
37           <%= render_pipeline_component_attribute (editable && @object), :components, [k, :script_version], component[:script_version] %>
38         </td>
39       </tr>
40
41       <% component[:script_parameters].andand.each do |p, tv| %>
42         <tr>
43           <td style="border-top: none"></td>
44           <td style="border-top: none"></td>
45
46           <td class="property-edit-row"><%= p %></td>
47           <td class="property-edit-row"><%= render_pipeline_component_attribute (editable && @object), :components, [k, :script_parameters, p.to_sym], tv %></td>
48         </tr>
49       <% end %>
50     <% end %>
51   </tbody>
52 </table>