X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/f0ab1bd48f45470ffb6fefafa713c51347f5a194..6eb3d1fb8fe71623fa63da46c250184cf2e4fbb8:/apps/workbench/app/views/collections/_index_tbody.html.erb diff --git a/apps/workbench/app/views/collections/_index_tbody.html.erb b/apps/workbench/app/views/collections/_index_tbody.html.erb index ec5a09e3c6..dd077aa2a4 100644 --- a/apps/workbench/app/views/collections/_index_tbody.html.erb +++ b/apps/workbench/app/views/collections/_index_tbody.html.erb @@ -1,12 +1,17 @@ -<% @collections.each do |c| %> +<% @objects.each do |c| %> - <% friendly_name = c.friendly_link_name %> - <% @collection_info[c.uuid][:tag_links].each do |tag_link| %> - <% friendly_name += raw(" #{tag_link.name}") %> - <% end %> - <%= render :partial => "selection_checkbox", :locals => {:object => c, :friendly_name => friendly_name} %> + <%= + friendly_name = c.friendly_link_name + @collection_info[c.uuid][:tag_links].each do |tag_link| + friendly_name += raw(" #{tag_link.name}") + end + render partial: "selection_checkbox", locals: { + object: c, + friendly_name: friendly_name + } + %> <%= render :partial => "show_object_button", :locals => {object: c, size: 'xs'} %> @@ -28,17 +33,13 @@ <%= c.created_at.to_s if c.created_at %> - - <% current_state = @collection_info[c.uuid][:wanted_by_me] ? 'persistent' : 'cache' %> - <%= render partial: 'toggle_persist', locals: { uuid: c.uuid, current_state: current_state } %> -  Add <% if @collection_info[c.uuid] %> <% @collection_info[c.uuid][:tag_links].each do |tag_link| %> <%= tag_link.name %> - <% if tag_link.owner_uuid == current_user.uuid %> + <% if tag_link.owner_uuid == current_user.andand.uuid %>   <% end %>