Fix 2.4.2 upgrade notes formatting refs #19330
[arvados.git] / apps / workbench / app / views / workflows / _show_recent.html.erb
1 <%# Copyright (C) The Arvados Authors. All rights reserved.
2
3 SPDX-License-Identifier: AGPL-3.0 %>
4
5 <%= render partial: "paging", locals: {results: @objects, object: @object} %>
6
7 <table class="table table-condensed arv-index">
8   <colgroup>
9     <col width="10%" />
10     <col width="10%" />
11     <col width="25%" />
12     <col width="40%" />
13     <col width="15%" />
14   </colgroup>
15
16   <thead>
17     <tr class="contain-align-left">
18       <th></th>
19       <th></th>
20       <th> name </th>
21       <th> description </th>
22       <th> owner </th>
23     </tr>
24   </thead>
25
26   <tbody>
27     <% @objects.sort_by { |ob| ob[:created_at] }.reverse.each do |ob| %>
28       <tr>
29         <td>
30           <%= button_to(choose_projects_path(id: "run-workflow-button",
31                                              title: 'Choose project',
32                                              editable: true,
33                                              action_name: 'Choose',
34                                              action_href: work_units_path,
35                                              action_method: 'post',
36                                              action_data: {'selection_param' => 'work_unit[owner_uuid]',
37                                                            'work_unit[template_uuid]' => ob.uuid,
38                                                            'success' => 'redirect-to-created-object'
39                                                           }.to_json),
40                   { class: "btn btn-default btn-xs", title: "Run #{ob.name}", remote: true, method: :get }
41               ) do %>
42                  <i class="fa fa-fw fa-play"></i> Run
43           <% end %>
44         </td>
45
46         <td>
47           <%= render :partial => "show_object_button", :locals => {object: ob, size: 'xs'} %>
48         </td>
49
50         <td>
51           <%= render_editable_attribute ob, 'name' %>
52         </td>
53
54         <td>
55           <% if ob.description %>
56             <%= render_attribute_as_textile(ob, "description", ob.description, false) %>
57             <br />
58           <% end %>
59         </td>
60
61         <td>
62           <%= link_to_if_arvados_object ob.owner_uuid, friendly_name: true %>
63         </td>
64       </tr>
65     <% end %>
66   </tbody>
67 </table>
68
69 <%= render partial: "paging", locals: {results: @objects, object: @object} %>