-<table class="table table-hover">
- <thead>
- <tr class="contain-align-left">
- <th>
- status
- </th><th>
- id
- </th><th>
- name
- </th><th>
- template
- </th><th>
- owner
- </th><th>
- components
- </th><th>
- dependencies
- </th><th>
- created
- </th>
- </tr>
- </thead>
- <tbody>
+<%# Copyright (C) The Arvados Authors. All rights reserved.
- <% @objects.sort_by { |ob| ob[:created_at] }.reverse.each do |ob| %>
+SPDX-License-Identifier: AGPL-3.0 %>
- <tr>
- <td>
- <% if ob.success %>
- <span class="label label-success">success</span>
- <% elsif ob.active %>
- <span class="label label-info">active</span>
- <% end %>
- </td><td>
- <%= link_to_if_orvos_object ob %>
- </td><td>
- <%= ob.name %>
- </td><td>
- <%= link_to_if_orvos_object ob.pipeline_template_uuid %>
- </td><td>
- <%= link_to_if_orvos_object ob.owner %>
- </td><td>
- <% ob.components.each do |cname, c| %>
- <% status = if !c[:job] then nil elsif c[:job][:success] then 'success' elsif c[:job][:running] then 'info' else 'warning' end %>
- <span class="label <%= "label-#{status}" if status %>"><%= cname.to_s %></span>
- <% end %>
- </td><td>
- <small>
- <% ob.dependencies.each do |d| %>
- <%= d %><br />
- <% end %>
- </small>
- </td><td>
- <%= ob.created_at %>
- </td>
- </tr>
+<% content_for :tab_line_buttons do %>
+ <div class="input-group">
+ <input type="text" class="form-control filterable-control recent-pipeline-instances-filterable-control"
+ placeholder="Search pipeline instances"
+ data-filterable-target="#recent-pipeline-instances"
+ <%# Just for the double-load test in FilterableInfiniteScrollTest: %>
+ value="<%= params[:search] %>"
+ />
+ </div>
- <% end %>
+ <%= form_tag({action: 'compare', controller: params[:controller], method: 'get'}, {method: 'get', id: 'compare', class: 'pull-right small-form-margin'}) do |f| %>
+ <%= submit_tag 'Compare 2 or 3 selected', {class: 'btn btn-primary', disabled: true} %>
+ <% end rescue nil %>
- </tbody>
-</table>
+<% end %>
+
+<%= render file: 'application/index.html.erb', locals: local_assigns %>