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