X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/437725d13f8775b29ad3e279a07b0bd4b7f8d098..65f13986f98a75f8da7cfe695ea5960ff741d402:/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 3d5c1c7a58..845c92e802 100644 --- a/apps/workbench/app/views/collections/_index_tbody.html.erb +++ b/apps/workbench/app/views/collections/_index_tbody.html.erb @@ -1,12 +1,21 @@ -<% @collections.each do |c| %> +<%# Copyright (C) The Arvados Authors. All rights reserved. + +SPDX-License-Identifier: AGPL-3.0 %> + +<% @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'} %> @@ -34,7 +43,7 @@ <% 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 %>