X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/3c12b6126b87af781058b159332446ee458635af..e20590d485505f58f7745d74a311ca539c9be940:/apps/workbench/app/views/users/_show_admin.html.erb?ds=sidebyside diff --git a/apps/workbench/app/views/users/_show_admin.html.erb b/apps/workbench/app/views/users/_show_admin.html.erb index 4c76ede515..b151ceff04 100644 --- a/apps/workbench/app/views/users/_show_admin.html.erb +++ b/apps/workbench/app/views/users/_show_admin.html.erb @@ -1,41 +1,50 @@ +<%# Copyright (C) The Arvados Authors. All rights reserved. + +SPDX-License-Identifier: AGPL-3.0 %> +
+

- As an admin, you can log in as this user. When you’ve - finished, you will need to log out and log in again with your - own account. + This page enables you to manage users.

-
- <%= button_to "Log in as #{@object.full_name}", sudo_user_url(id: @object.uuid), class: 'btn btn-primary' %> -
-

- As an admin, you can setup this user. Please input a VM and - repository for the user. If you had previously provided any of - these items, they are pre-filled for you and you can leave them - as is if you would like to reuse them. + This button sets up a user. After setup, they will be able use + Arvados. This dialog box also allows you to optionally set up a + shell account for this user. The login name is automatically + generated from the user's e-mail address.

-
- <%= link_to "Setup #{@object.full_name}", setup_popup_user_url(id: @object.uuid), {class: 'btn btn-primary', :remote => true, 'data-toggle' => "modal", 'data-target' => '#user-setup-modal-window'} %> -
+ <%= link_to "Setup account #{'for ' if @object.full_name.present?} #{@object.full_name}", setup_popup_user_url(id: @object.uuid), {class: 'btn btn-primary', :remote => true, 'data-toggle' => "modal", 'data-target' => '#user-setup-modal-window'} %> -

+

As an admin, you can deactivate and reset this user. This will remove all repository/VM permissions for the user. If you "setup" the user again, the user will have to sign the user - agreement again. + agreement again. You may also want to reassign data ownership.

-
- <%= button_to "Deactivate #{@object.full_name}", unsetup_user_url(id: @object.uuid), class: 'btn btn-primary', data: {confirm: "Are you sure you want to deactivate #{@object.full_name}?"} %> -
+ <%= button_to "Deactivate #{@object.full_name}", unsetup_user_url(id: @object.uuid), class: 'btn btn-primary', data: {confirm: "Are you sure you want to deactivate #{@object.full_name}?"} %> + +

+ As an admin, you can log in as this user. When you’ve + finished, you will need to log out and log in again with your + own account. +

+ + <%= button_to "Log in as #{@object.full_name}", sudo_user_url(id: @object.uuid), class: 'btn btn-primary' %>
Group memberships + +
+ <%= link_to raw(' Add new group'), "#", + {class: 'btn btn-xs btn-primary', 'data-toggle' => "modal", + 'data-target' => '#add-group-modal'} %> +
@@ -47,7 +56,7 @@
<% permitted_group_perms = {} - Link.limit(10000).filter([ + Link.filter([ ['tail_uuid', '=', @object.uuid], ['head_uuid', 'is_a', 'arvados#group'], ['link_class', '=', 'permission'], @@ -68,7 +77,7 @@ disabled: (group.owner_uuid == @object.uuid), data: { permission_head: group.uuid, - permission_uuid: permitted_group_perms[group.uuid]}) %> + permission_uuid: permitted_group_perms[group.uuid] || 'x'}) %> user→group
<% end.empty? and begin %> @@ -94,7 +103,7 @@
+<%= render partial: "add_group_modal" %>