Skip to content

Commit f198c81

Browse files
committed
Add explanations for deactivate user and block user buttons in admin
1 parent f62c421 commit f198c81

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

app/assets/javascripts/admin/templates/user.js.handlebars

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@
8585
{{#if active}}
8686
{{#if can_deactivate}}
8787
<button class='btn' {{action deactivate target="content"}}>{{i18n admin.user.deactivate_account}}</button>
88+
{{i18n admin.user.deactivate_explanation}}
8889
{{/if}}
8990
{{else}}
9091
{{#if can_send_activation_email}}
@@ -163,6 +164,7 @@
163164
</button>
164165
{{/if}}
165166
{{/if}}
167+
{{i18n admin.user.banned_explanation}}
166168
</div>
167169
</div>
168170
<div class='display-row'>

config/locales/client.en.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1172,6 +1172,8 @@ en:
11721172
deactivate_failed: "There was a problem deactivating the user."
11731173
unblock_failed: 'There was a problem unblocking the user.'
11741174
block_failed: 'There was a problem blocking the user.'
1175+
deactivate_explanation: "A deactivated user must validate their email again before logging in."
1176+
banned_explanation: "A banned user can't log in."
11751177
block_explanation: "A blocked user can't post or start topics."
11761178

11771179

0 commit comments

Comments
 (0)