X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/ac30c34ccfacce16cca52e155d2a0e50b0185dc3..1bb0592a2fd043b09ab9845cfc25dbdffff1c009:/apps/workbench/app/views/projects/_show_sharing.html.erb diff --git a/apps/workbench/app/views/projects/_show_sharing.html.erb b/apps/workbench/app/views/projects/_show_sharing.html.erb index ad23065876..95a7ee100d 100644 --- a/apps/workbench/app/views/projects/_show_sharing.html.erb +++ b/apps/workbench/app/views/projects/_show_sharing.html.erb @@ -1,7 +1,13 @@ <% uuid_map = {} - [@users, @groups].each do |obj_list| - obj_list.each { |o| uuid_map[o.uuid] = o } + if @share_links + [User, Group].each do |type| + type.limit(10000) + .filter([['uuid','in',@share_links.collect(&:tail_uuid)]]) + .each do |o| + uuid_map[o.uuid] = o + end + end end perm_name_desc_map = {} perm_desc_name_map = {} @@ -14,7 +20,7 @@ end perms_json = perms_json.to_json choose_filters = { - "groups" => [["group_class", "=", nil]], + "groups" => [["group_class", "=", "role"]], } choose_filters.default = [] owner_icon = fa_icon_class_for_uuid(@object.owner_uuid) @@ -55,6 +61,7 @@ + @@ -66,12 +73,19 @@ link_name = shared_with.full_name else link_name = shared_with.name - end %> + end + if shared_with && shared_with.respond_to?(:email) + email = shared_with.email + end + %> +
User/Group NameEmail Address Project Access
<%= link_to_if_arvados_object(link.tail_uuid, link_text: link_name) %> + <%= email %> + <%= link_to perm_name_desc_map[link.name], '#', { "data-emptytext" => "Read", "data-placement" => "bottom",