X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/f3d919829c017376eeccd27db9908b7f5a6e32aa..2d10f584cafa6348a933a5714ec8a7744957005d:/apps/workbench/app/views/pipeline_instances/_show_recent.html.erb diff --git a/apps/workbench/app/views/pipeline_instances/_show_recent.html.erb b/apps/workbench/app/views/pipeline_instances/_show_recent.html.erb index e211112946..e1a7cea0ad 100644 --- a/apps/workbench/app/views/pipeline_instances/_show_recent.html.erb +++ b/apps/workbench/app/views/pipeline_instances/_show_recent.html.erb @@ -1,92 +1,37 @@ -<%= content_for :tab_line_buttons do %> -<%= form_tag({action: 'compare', controller: params[:controller], method: 'get'}, {method: 'get', id: 'compare', class: 'pull-right small-form-margin'}) do |f| %> - <%= submit_tag 'Compare selected', {class: 'btn btn-primary', disabled: true, style: 'display: none'} %> -   -<% end rescue nil %> -<% end %> - <%= form_tag do |f| %> - +
+ + + + + + + + + - - - <% @objects.sort_by { |ob| ob.created_at }.reverse.each do |ob| %> - - - - - - <% end %> + -
- status - - id + Status - name + Instance - template + Template - owner + Owner - components - - dependencies - - created + Created at
- <%= check_box_tag 'uuids[]', ob.uuid, false %> - - <% if ob.success %> - success - <% elsif ob.active %> - active - <% end %> - - <%= link_to_if_arvados_object ob %> - - <%= ob.name %> - - <%= link_to_if_arvados_object ob.pipeline_template_uuid %> - - <%= link_to_if_arvados_object ob.owner_uuid %> - - <% ob.components.each do |cname, c| %> - <% status = if !(c.is_a?(Hash) && c[:job].is_a?(Hash)) then nil elsif c[:job][:success] then 'success' elsif c[:job][:running] then 'info' else 'warning' end %> - "><%= cname.to_s %> - <% end %> - - - <% ob.dependencies.each do |d| %> - <%= d %>
- <% end %> -
-
- <%= ob.created_at %> -
-<% end %> + -<% content_for :footer_js do %> -var showhide_compare = function() { - var form = $('form#compare')[0]; - $('input[type=hidden][name="uuids[]"]', form).remove(); - $('input[type=submit]', form).prop('disabled',true); - $('input[name="uuids[]"]').each(function(){ - if(this.checked) { - $('input[type=submit]', form).prop('disabled',false).show(); - $(form).append($('').val(this.value)); - } - }); -}; -$('form input[name="uuids[]"]').on('click', showhide_compare); -showhide_compare(); <% end %>