X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/f222423ba06019e796e5024d300398577e9987e1..a9619cd9d563b5c434da6a11566517cacb410124:/apps/workbench/app/views/pipeline_instances/index.html.erb diff --git a/apps/workbench/app/views/pipeline_instances/index.html.erb b/apps/workbench/app/views/pipeline_instances/index.html.erb index 2789ca113b..4b73bd499a 100644 --- a/apps/workbench/app/views/pipeline_instances/index.html.erb +++ b/apps/workbench/app/views/pipeline_instances/index.html.erb @@ -1,81 +1,8 @@ -<%= form_tag({action: 'compare', controller: 'pipeline_instances', method: 'get'}, {method: 'get', id: 'compare'}) do |f| %> - - - - - - - - - - <% @objects.sort_by { |ob| ob.created_at }.reverse.each do |ob| %> - - - - - - <% end %> - - -
- <%= submit_tag 'Compare', {class: 'btn btn-primary', disabled: true} %> - - status - - id - - name - - template - - owner - - components - - dependencies - - created -
- <%= 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 %> -
- +<% 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 2 or 3 selected', {class: 'btn btn-primary', disabled: true, style: 'display: none'} %> +   +<% end rescue nil %> <% end %> -<% content_for :footer_js do %> -$('form#compare input[name="uuids[]"]').on('click', function() { - var form = $('form#compare')[0] - $('input[type=submit]', form).prop('disabled',true); - $('input[name="uuids[]"]', form).each(function(){ - if(this.checked) { - $('input[type=submit]', form).prop('disabled',false); - } - }); -}); -<% end %> +<%= render file: 'application/index.html.erb', locals: local_assigns %>