diff options
author | manojmj <mmj@gitlab.com> | 2019-09-04 14:10:01 +0530 |
---|---|---|
committer | manojmj <mmj@gitlab.com> | 2019-09-18 13:44:23 +0530 |
commit | 64333fba876cbfa8a74d8efa32d371e8051da1f8 (patch) | |
tree | 0cd824ab40f8d9ed1e4221ed3bc58b1390c51b32 | |
parent | aad2b4089cfef24ec7ed1ea6a4cee87debc51420 (diff) | |
download | gitlab-ce-63921-deactivate-a-user-with-self-service-reactivation.tar.gz |
Add partial for user activation63921-deactivate-a-user-with-self-service-reactivation
This change adds partials for user activation
-rw-r--r-- | app/views/admin/users/_user_activation_effects.html.haml | 6 | ||||
-rw-r--r-- | app/views/admin/users/_user_deactivation_effects.html.haml | 1 | ||||
-rw-r--r-- | app/views/admin/users/show.html.haml | 5 | ||||
-rw-r--r-- | locale/gitlab.pot | 77 |
4 files changed, 69 insertions, 20 deletions
diff --git a/app/views/admin/users/_user_activation_effects.html.haml b/app/views/admin/users/_user_activation_effects.html.haml new file mode 100644 index 00000000000..244836dac11 --- /dev/null +++ b/app/views/admin/users/_user_activation_effects.html.haml @@ -0,0 +1,6 @@ +%p + = s_('AdminUsers|Reactivating a user will:') +%ul + %li + = s_('AdminUsers|Restore user access to the account, including web, Git and API.') + = render_if_exists 'admin/users/user_activation_effects_on_seats' diff --git a/app/views/admin/users/_user_deactivation_effects.html.haml b/app/views/admin/users/_user_deactivation_effects.html.haml index 0d91e4416b2..6cc47214d77 100644 --- a/app/views/admin/users/_user_deactivation_effects.html.haml +++ b/app/views/admin/users/_user_deactivation_effects.html.haml @@ -13,3 +13,4 @@ = s_('AdminUsers|When the user logs back in, their account will reactivate as a fully active account') %li = s_('AdminUsers|Personal projects, group and user history will be left intact') + = render_if_exists 'admin/users/user_deactivation_effects_on_seats' diff --git a/app/views/admin/users/show.html.haml b/app/views/admin/users/show.html.haml index a53007641f3..67a82150b8f 100644 --- a/app/views/admin/users/show.html.haml +++ b/app/views/admin/users/show.html.haml @@ -161,10 +161,7 @@ .card-header.bg-info.text-white Reactivate this user .card-body - %p Reactivating a user will: - %ul - %li Restore user access to the account, including web, Git and API. - = render_if_exists 'admin/users/user_activation_effects' + = render partial: 'admin/users/user_activation_effects' %br = link_to 'Activate user', activate_admin_user_path(@user), method: :put, class: "btn btn-info", data: { confirm: 'Are you sure?' } - elsif @user.can_be_deactivated? diff --git a/locale/gitlab.pot b/locale/gitlab.pot index a55af4432a2..f70cfab1f6f 100644 --- a/locale/gitlab.pot +++ b/locale/gitlab.pot @@ -816,12 +816,6 @@ msgstr "" msgid "Admin Section" msgstr "" -msgid "AdminArea| You are about to permanently delete the user %{username}. Issues, merge requests, and groups linked to them will be transferred to a system-wide \"Ghost-user\". To avoid data loss, consider using the %{strong_start}block user%{strong_end} feature instead. Once you %{strong_start}Delete user%{strong_end}, it cannot be undone or recovered." -msgstr "" - -msgid "AdminArea| You are about to permanently delete the user %{username}. This will delete all of the issues, merge requests, and groups linked to them. To avoid data loss, consider using the %{strong_start}block user%{strong_end} feature instead. Once you %{strong_start}Delete user%{strong_end}, it cannot be undone or recovered." -msgstr "" - msgid "AdminArea|Stop all jobs" msgstr "" @@ -906,18 +900,39 @@ msgstr "" msgid "AdminUsers|Admins" msgstr "" +msgid "AdminUsers|Block" +msgstr "" + msgid "AdminUsers|Block user" msgstr "" +msgid "AdminUsers|Block user %{username}?" +msgstr "" + msgid "AdminUsers|Blocked" msgstr "" +msgid "AdminUsers|Blocking user has the following effects:" +msgstr "" + msgid "AdminUsers|Cannot unblock LDAP blocked users" msgstr "" +msgid "AdminUsers|Deactivate" +msgstr "" + +msgid "AdminUsers|Deactivate User %{username}?" +msgstr "" + +msgid "AdminUsers|Deactivate user" +msgstr "" + msgid "AdminUsers|Deactivated" msgstr "" +msgid "AdminUsers|Deactivating a user has the following effects:" +msgstr "" + msgid "AdminUsers|Delete User %{username} and contributions?" msgstr "" @@ -942,6 +957,21 @@ msgstr "" msgid "AdminUsers|No users found" msgstr "" +msgid "AdminUsers|Owned groups will be left" +msgstr "" + +msgid "AdminUsers|Personal projects will be left" +msgstr "" + +msgid "AdminUsers|Personal projects, group and user history will be left intact" +msgstr "" + +msgid "AdminUsers|Reactivating a user will:" +msgstr "" + +msgid "AdminUsers|Restore user access to the account, including web, Git and API." +msgstr "" + msgid "AdminUsers|Search by name, email or username" msgstr "" @@ -951,18 +981,42 @@ msgstr "" msgid "AdminUsers|Sort by" msgstr "" +msgid "AdminUsers|The user will be logged out" +msgstr "" + +msgid "AdminUsers|The user will not be able to access git repositories" +msgstr "" + +msgid "AdminUsers|The user will not be able to access the API" +msgstr "" + +msgid "AdminUsers|The user will not receive any notifications" +msgstr "" + msgid "AdminUsers|To confirm, type %{projectName}" msgstr "" msgid "AdminUsers|To confirm, type %{username}" msgstr "" -msgid "AdminUsers|User will be blocked" +msgid "AdminUsers|User will not be able to access git repositories" +msgstr "" + +msgid "AdminUsers|User will not be able to login" +msgstr "" + +msgid "AdminUsers|When the user logs back in, their account will reactivate as a fully active account" msgstr "" msgid "AdminUsers|Without projects" msgstr "" +msgid "AdminUsers|You are about to permanently delete the user %{username}. Issues, merge requests, and groups linked to them will be transferred to a system-wide \"Ghost-user\". To avoid data loss, consider using the %{strong_start}block user%{strong_end} feature instead. Once you %{strong_start}Delete user%{strong_end}, it cannot be undone or recovered." +msgstr "" + +msgid "AdminUsers|You are about to permanently delete the user %{username}. This will delete all of the issues, merge requests, and groups linked to them. To avoid data loss, consider using the %{strong_start}block user%{strong_end} feature instead. Once you %{strong_start}Delete user%{strong_end}, it cannot be undone or recovered." +msgstr "" + msgid "Advanced" msgstr "" @@ -1323,9 +1377,6 @@ msgstr "" msgid "Archiving the project will make it entirely read-only. It is hidden from the dashboard and doesn't show up in searches. <strong>The repository cannot be committed to, and no issues, comments or other entities can be created.</strong>" msgstr "" -msgid "Are you sure" -msgstr "" - msgid "Are you sure that you want to archive this project?" msgstr "" @@ -1756,9 +1807,6 @@ msgstr "" msgid "Bitbucket import" msgstr "" -msgid "Block" -msgstr "" - msgid "Blocked" msgstr "" @@ -3797,9 +3845,6 @@ msgstr "" msgid "DayTitle|W" msgstr "" -msgid "Deactivate" -msgstr "" - msgid "Debug" msgstr "" |