2014-09-03 10:41:13 -04:00
|
|
|
<section {{bind-attr class=":details active::not-activated"}}>
|
2013-02-05 14:16:51 -05:00
|
|
|
|
2014-08-27 13:52:01 -04:00
|
|
|
<div class='user-controls'>
|
2014-09-03 10:41:13 -04:00
|
|
|
{{#if active}}
|
|
|
|
{{#link-to 'user' model class="btn"}}
|
2015-03-17 17:59:05 -04:00
|
|
|
{{fa-icon "user"}}
|
2014-12-08 16:35:49 -05:00
|
|
|
{{i18n 'admin.user.show_public_profile'}}
|
2014-09-03 10:41:13 -04:00
|
|
|
{{/link-to}}
|
|
|
|
{{#if can_impersonate}}
|
2015-03-17 17:59:05 -04:00
|
|
|
<button class='btn btn-danger' {{action "impersonate" target="content"}} title="{{i18n 'admin.impersonate.help'}}">
|
|
|
|
{{fa-icon "crosshairs"}}
|
|
|
|
{{i18n 'admin.impersonate.title'}}
|
|
|
|
</button>
|
2014-09-03 10:41:13 -04:00
|
|
|
{{/if}}
|
|
|
|
{{#if currentUser.admin}}
|
2015-03-17 17:59:05 -04:00
|
|
|
<button class='btn' {{action "log_out" target="content"}}>
|
|
|
|
{{fa-icon "power-off"}}
|
|
|
|
{{i18n 'admin.user.log_out'}}
|
|
|
|
</button>
|
2014-09-03 10:41:13 -04:00
|
|
|
{{/if}}
|
2014-08-27 13:52:01 -04:00
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
|
2014-09-03 10:41:13 -04:00
|
|
|
<div class='display-row username'>
|
2014-12-08 16:35:49 -05:00
|
|
|
<div class='field'>{{i18n 'user.username.title'}}</div>
|
2013-05-20 15:27:58 -04:00
|
|
|
<div class='value'>{{username}}</div>
|
2013-02-05 14:16:51 -05:00
|
|
|
<div class='controls'>
|
2014-08-27 13:52:01 -04:00
|
|
|
{{#link-to 'preferences.username' model class="btn"}}
|
2015-03-17 17:59:05 -04:00
|
|
|
{{fa-icon "pencil"}}
|
2014-12-08 16:35:49 -05:00
|
|
|
{{i18n 'user.change_username.title'}}
|
2013-09-16 14:08:55 -04:00
|
|
|
{{/link-to}}
|
2013-02-05 14:16:51 -05:00
|
|
|
</div>
|
|
|
|
</div>
|
2013-04-20 01:34:11 -04:00
|
|
|
|
2014-09-29 16:31:05 -04:00
|
|
|
{{#if canCheckEmails}}
|
|
|
|
<div class='display-row email'>
|
2014-12-08 16:35:49 -05:00
|
|
|
<div class='field'>{{i18n 'user.email.title'}}</div>
|
2014-09-29 16:31:05 -04:00
|
|
|
<div class='value'>
|
|
|
|
{{#unless active}}
|
2014-12-08 16:35:49 -05:00
|
|
|
<div class='controls'>{{i18n 'admin.users.not_verified'}}</div>
|
2014-09-29 16:31:05 -04:00
|
|
|
{{/unless}}
|
|
|
|
{{#if email}}
|
|
|
|
<a href="mailto:{{unbound email}}">{{email}}</a>
|
|
|
|
{{else}}
|
2014-12-08 16:35:49 -05:00
|
|
|
<button class="btn" title="{{i18n 'admin.users.check_email.title'}}" {{action "checkEmail" this}}>{{fa-icon "envelope-o"}} {{i18n 'admin.users.check_email.text'}}</button>
|
2014-09-29 16:31:05 -04:00
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
</div>
|
2013-04-20 01:34:11 -04:00
|
|
|
|
2014-09-29 16:31:05 -04:00
|
|
|
<div class='display-row associations'>
|
2014-12-08 16:35:49 -05:00
|
|
|
<div class='field'>{{i18n 'user.associated_accounts'}}</div>
|
2014-09-29 16:31:05 -04:00
|
|
|
<div class='value'>
|
|
|
|
{{#if associated_accounts}}
|
|
|
|
{{associated_accounts}}
|
|
|
|
{{else}}
|
2014-12-08 16:35:49 -05:00
|
|
|
<button class="btn" title="{{i18n 'admin.users.check_email.title'}}" {{action "checkEmail" this}}>{{fa-icon "envelope-o"}} {{i18n 'admin.users.check_email.text'}}</button>
|
2014-09-29 16:31:05 -04:00
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
2014-09-25 01:50:54 -04:00
|
|
|
|
2013-11-11 15:03:17 -05:00
|
|
|
<div class='display-row'>
|
2014-12-08 16:35:49 -05:00
|
|
|
<div class='field'>{{i18n 'user.avatar.title'}}</div>
|
2013-02-05 14:16:51 -05:00
|
|
|
<div class='value'>{{avatar content imageSize="large"}}</div>
|
|
|
|
</div>
|
2013-04-20 01:34:11 -04:00
|
|
|
|
2013-06-25 18:39:20 -04:00
|
|
|
<div class='display-row'>
|
2014-12-08 16:35:49 -05:00
|
|
|
<div class='field'>{{i18n 'user.title.title'}}</div>
|
2013-06-25 18:39:20 -04:00
|
|
|
<div class='value'>
|
|
|
|
{{#if editingTitle}}
|
2014-06-10 11:54:38 -04:00
|
|
|
{{text-field value=title autofocus="autofocus"}}
|
2013-06-25 18:39:20 -04:00
|
|
|
{{else}}
|
2014-09-30 12:36:23 -04:00
|
|
|
<span {{action "toggleTitleEdit"}}>{{title}} </span>
|
2013-06-25 18:39:20 -04:00
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
<div class='controls'>
|
|
|
|
{{#if editingTitle}}
|
2015-03-17 17:59:05 -04:00
|
|
|
{{d-button action="saveTitle" label="admin.user.save_title"}}
|
|
|
|
<a href {{action "toggleTitleEdit"}}>{{i18n 'cancel'}}</a>
|
2013-06-25 18:39:20 -04:00
|
|
|
{{else}}
|
2015-03-17 17:59:05 -04:00
|
|
|
{{d-button action="toggleTitleEdit" icon="pencil" label="admin.user.edit_title"}}
|
2013-06-25 18:39:20 -04:00
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2013-11-11 15:03:17 -05:00
|
|
|
<div class='display-row'>
|
2014-12-08 16:35:49 -05:00
|
|
|
<div class='field'>{{i18n 'user.ip_address.title'}}</div>
|
2013-05-20 15:27:58 -04:00
|
|
|
<div class='value'>{{ip_address}}</div>
|
2013-02-05 14:16:51 -05:00
|
|
|
<div class='controls'>
|
2014-11-24 05:08:13 -05:00
|
|
|
{{#if currentUser.staff}}
|
2014-09-30 12:36:23 -04:00
|
|
|
<button class='btn' {{action "refreshBrowsers" target="content"}}>
|
2014-12-08 16:35:49 -05:00
|
|
|
{{i18n 'admin.user.refresh_browsers'}}
|
2014-07-07 16:18:18 -04:00
|
|
|
</button>
|
2014-11-24 12:04:34 -05:00
|
|
|
{{ip-lookup ip=ip_address userId=id}}
|
2013-05-02 01:15:17 -04:00
|
|
|
{{/if}}
|
2013-02-05 14:16:51 -05:00
|
|
|
</div>
|
|
|
|
</div>
|
2013-04-20 01:34:11 -04:00
|
|
|
|
2014-04-29 14:37:56 -04:00
|
|
|
<div class='display-row'>
|
2014-12-08 16:35:49 -05:00
|
|
|
<div class='field'>{{i18n 'user.registration_ip_address.title'}}</div>
|
2014-04-29 14:37:56 -04:00
|
|
|
<div class='value'>{{registration_ip_address}}</div>
|
2014-06-15 12:14:19 -04:00
|
|
|
<div class='controls'>
|
2014-11-24 05:08:13 -05:00
|
|
|
{{#if currentUser.staff}}
|
2014-11-24 12:04:34 -05:00
|
|
|
{{ip-lookup ip=registration_ip_address userId=id}}
|
2014-06-15 12:14:19 -04:00
|
|
|
{{/if}}
|
|
|
|
</div>
|
2014-04-29 14:37:56 -04:00
|
|
|
</div>
|
|
|
|
|
2014-03-19 10:27:21 -04:00
|
|
|
{{#if showBadges}}
|
|
|
|
<div class='display-row'>
|
2014-12-08 16:35:49 -05:00
|
|
|
<div class='field'>{{i18n 'admin.badges.title'}}</div>
|
2014-03-19 10:27:21 -04:00
|
|
|
<div class='value'>
|
2014-12-08 16:35:49 -05:00
|
|
|
{{i18n 'badges.badge_count' count=badge_count}}
|
2014-03-19 10:27:21 -04:00
|
|
|
</div>
|
|
|
|
<div class='controls'>
|
2015-03-17 17:59:05 -04:00
|
|
|
{{#link-to 'adminUser.badges' this class="btn"}}{{fa-icon "certificate"}}{{i18n 'admin.badges.edit_badges'}}{{/link-to}}
|
2014-03-19 10:27:21 -04:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
2013-02-05 14:16:51 -05:00
|
|
|
</section>
|
|
|
|
|
2014-09-26 14:48:34 -04:00
|
|
|
{{#if userFields}}
|
|
|
|
<section class='details'>
|
2014-12-12 13:28:20 -05:00
|
|
|
{{#each uf in userFields}}
|
2014-09-26 14:48:34 -04:00
|
|
|
<div class='display-row'>
|
2014-12-12 13:28:20 -05:00
|
|
|
<div class='field'>{{uf.name}}</div>
|
2014-09-26 14:48:34 -04:00
|
|
|
<div class='value'>
|
2014-12-12 13:28:20 -05:00
|
|
|
{{#if uf.value}}
|
|
|
|
{{uf.value}}
|
2014-09-26 14:48:34 -04:00
|
|
|
{{else}}
|
|
|
|
—
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{/each}}
|
|
|
|
</section>
|
|
|
|
{{/if}}
|
|
|
|
|
2013-02-05 14:16:51 -05:00
|
|
|
<section class='details'>
|
2014-12-08 16:35:49 -05:00
|
|
|
<h1>{{i18n 'admin.user.permissions'}}</h1>
|
2013-02-05 14:16:51 -05:00
|
|
|
|
2013-09-09 12:21:47 -04:00
|
|
|
{{#if showApproval}}
|
|
|
|
<div class='display-row'>
|
2014-12-08 16:35:49 -05:00
|
|
|
<div class='field'>{{i18n 'admin.users.approved'}}</div>
|
2013-09-09 12:21:47 -04:00
|
|
|
<div class='value'>
|
|
|
|
{{#if approved}}
|
2014-12-08 16:35:49 -05:00
|
|
|
{{i18n 'admin.user.approved_by'}}
|
2014-03-24 11:43:06 -04:00
|
|
|
{{#link-to 'adminUser' approvedBy}}{{avatar approvedBy imageSize="small"}}{{/link-to}}
|
|
|
|
{{#link-to 'adminUser' approvedBy}}{{approvedBy.username}}{{/link-to}}
|
2013-09-09 12:21:47 -04:00
|
|
|
{{else}}
|
2014-12-08 16:35:49 -05:00
|
|
|
{{i18n 'no_value'}}
|
2013-09-09 12:21:47 -04:00
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
<div class='controls'>
|
|
|
|
{{#if approved}}
|
2014-12-08 16:35:49 -05:00
|
|
|
{{i18n 'admin.user.approve_success'}}
|
2013-09-09 12:21:47 -04:00
|
|
|
{{else}}
|
|
|
|
{{#if can_approve}}
|
2014-09-30 12:36:23 -04:00
|
|
|
<button class='btn' {{action "approve" target="content"}}>
|
2015-03-17 17:59:05 -04:00
|
|
|
{{fa-icon "check"}}
|
2014-12-08 16:35:49 -05:00
|
|
|
{{i18n 'admin.user.approve'}}
|
2013-09-09 12:21:47 -04:00
|
|
|
</button>
|
|
|
|
{{/if}}
|
2013-06-06 00:18:22 -04:00
|
|
|
{{/if}}
|
2013-09-09 12:21:47 -04:00
|
|
|
</div>
|
2013-02-05 14:16:51 -05:00
|
|
|
</div>
|
2013-09-09 12:21:47 -04:00
|
|
|
{{/if}}
|
2013-02-05 14:16:51 -05:00
|
|
|
|
2013-05-07 21:58:34 -04:00
|
|
|
<div class='display-row'>
|
2014-12-08 16:35:49 -05:00
|
|
|
<div class='field'>{{i18n 'admin.users.active'}}</div>
|
2013-05-07 21:58:34 -04:00
|
|
|
<div class='value'>
|
2013-05-20 15:27:58 -04:00
|
|
|
{{#if active}}
|
2014-12-08 16:35:49 -05:00
|
|
|
{{i18n 'yes_value'}}
|
2013-05-07 21:58:34 -04:00
|
|
|
{{else}}
|
2014-12-08 16:35:49 -05:00
|
|
|
{{i18n 'no_value'}}
|
2013-05-07 21:58:34 -04:00
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
<div class='controls'>
|
2013-05-20 15:27:58 -04:00
|
|
|
{{#if active}}
|
|
|
|
{{#if can_deactivate}}
|
2014-12-08 16:35:49 -05:00
|
|
|
<button class='btn' {{action "deactivate" target="content"}}>{{i18n 'admin.user.deactivate_account'}}</button>
|
|
|
|
{{i18n 'admin.user.deactivate_explanation'}}
|
2013-05-07 21:58:34 -04:00
|
|
|
{{/if}}
|
|
|
|
{{else}}
|
2013-05-20 15:27:58 -04:00
|
|
|
{{#if can_send_activation_email}}
|
2014-09-30 12:36:23 -04:00
|
|
|
<button class='btn' {{action "sendActivationEmail" target="content"}}>
|
2015-03-17 17:59:05 -04:00
|
|
|
{{fa-icon "envelope"}}
|
2014-12-08 16:35:49 -05:00
|
|
|
{{i18n 'admin.user.send_activation_email'}}
|
2013-05-07 21:58:34 -04:00
|
|
|
</button>
|
|
|
|
{{/if}}
|
2013-05-20 15:27:58 -04:00
|
|
|
{{#if can_activate}}
|
2014-09-30 12:36:23 -04:00
|
|
|
<button class='btn' {{action "activate" target="content"}}>
|
2015-03-17 17:59:05 -04:00
|
|
|
{{fa-icon "check"}}
|
2014-12-08 16:35:49 -05:00
|
|
|
{{i18n 'admin.user.activate'}}
|
2013-05-07 21:58:34 -04:00
|
|
|
</button>
|
|
|
|
{{/if}}
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2013-10-22 15:53:08 -04:00
|
|
|
<div class='display-row'>
|
2014-12-08 16:35:49 -05:00
|
|
|
<div class='field'>{{i18n 'admin.api.key'}}</div>
|
2013-10-22 15:53:08 -04:00
|
|
|
{{#if api_key}}
|
|
|
|
<div class='long-value'>
|
|
|
|
{{api_key.key}}
|
2015-03-17 17:59:05 -04:00
|
|
|
{{d-button action="regenerateApiKey" icon="undo" label="admin.api.regenerate"}}
|
|
|
|
{{d-button action="revokeApiKey" icon="times" label="admin.api.revoke"}}
|
2013-10-22 15:53:08 -04:00
|
|
|
</div>
|
|
|
|
{{else}}
|
|
|
|
<div class='value'>
|
2015-03-17 17:59:05 -04:00
|
|
|
—
|
2013-10-22 15:53:08 -04:00
|
|
|
</div>
|
|
|
|
<div class='controls'>
|
2015-03-17 17:59:05 -04:00
|
|
|
{{d-button action="generateApiKey" icon="key" label="admin.api.generate"}}
|
2013-10-22 15:53:08 -04:00
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
|
2013-02-05 14:16:51 -05:00
|
|
|
<div class='display-row'>
|
2014-12-08 16:35:49 -05:00
|
|
|
<div class='field'>{{i18n 'admin.user.admin'}}</div>
|
2013-05-20 15:27:58 -04:00
|
|
|
<div class='value'>{{admin}}</div>
|
2013-02-05 14:16:51 -05:00
|
|
|
<div class='controls'>
|
2013-05-20 15:27:58 -04:00
|
|
|
{{#if can_revoke_admin}}
|
2014-09-30 12:36:23 -04:00
|
|
|
<button class='btn' {{action "revokeAdmin" target="content"}}>
|
2015-03-17 17:59:05 -04:00
|
|
|
{{fa-icon "shield"}}
|
2014-12-08 16:35:49 -05:00
|
|
|
{{i18n 'admin.user.revoke_admin'}}
|
2013-02-05 14:16:51 -05:00
|
|
|
</button>
|
|
|
|
{{/if}}
|
2013-05-20 15:27:58 -04:00
|
|
|
{{#if can_grant_admin}}
|
2014-09-30 12:36:23 -04:00
|
|
|
<button class='btn' {{action "grantAdmin" target="content"}}>
|
2015-03-17 17:59:05 -04:00
|
|
|
{{fa-icon "shield"}}
|
2014-12-08 16:35:49 -05:00
|
|
|
{{i18n 'admin.user.grant_admin'}}
|
2013-02-05 14:16:51 -05:00
|
|
|
</button>
|
2013-03-20 20:25:41 -04:00
|
|
|
{{/if}}
|
2013-02-05 14:16:51 -05:00
|
|
|
</div>
|
|
|
|
</div>
|
2015-03-17 17:59:05 -04:00
|
|
|
|
2013-02-05 14:16:51 -05:00
|
|
|
<div class='display-row'>
|
2014-12-08 16:35:49 -05:00
|
|
|
<div class='field'>{{i18n 'admin.user.moderator'}}</div>
|
2013-05-20 15:27:58 -04:00
|
|
|
<div class='value'>{{moderator}}</div>
|
2013-02-12 17:58:08 -05:00
|
|
|
<div class='controls'>
|
2013-05-20 15:27:58 -04:00
|
|
|
{{#if can_revoke_moderation}}
|
2014-09-30 12:36:23 -04:00
|
|
|
<button class='btn' {{action "revokeModeration" target="content"}}>
|
2015-03-17 17:59:05 -04:00
|
|
|
{{fa-icon "shield"}}
|
2014-12-08 16:35:49 -05:00
|
|
|
{{i18n 'admin.user.revoke_moderation'}}
|
2013-02-12 17:58:08 -05:00
|
|
|
</button>
|
|
|
|
{{/if}}
|
2013-05-20 15:27:58 -04:00
|
|
|
{{#if can_grant_moderation}}
|
2014-09-30 12:36:23 -04:00
|
|
|
<button class='btn' {{action "grantModeration" target="content"}}>
|
2015-03-17 17:59:05 -04:00
|
|
|
{{fa-icon "shield"}}
|
2014-12-08 16:35:49 -05:00
|
|
|
{{i18n 'admin.user.grant_moderation'}}
|
2013-02-12 17:58:08 -05:00
|
|
|
</button>
|
2013-03-20 20:25:41 -04:00
|
|
|
{{/if}}
|
2013-02-12 17:58:08 -05:00
|
|
|
</div>
|
2013-02-05 14:16:51 -05:00
|
|
|
</div>
|
2013-07-01 10:22:21 -04:00
|
|
|
|
2013-02-05 14:16:51 -05:00
|
|
|
<div class='display-row'>
|
2014-12-08 16:35:49 -05:00
|
|
|
<div class='field'>{{i18n 'trust_level'}}</div>
|
2013-07-01 10:22:21 -04:00
|
|
|
<div class="value">
|
2014-06-11 10:57:30 -04:00
|
|
|
{{combo-box content=trustLevels value=trust_level nameProperty="detailedName"}}
|
2014-01-22 17:09:56 -05:00
|
|
|
{{#if dirty}}
|
|
|
|
<div>
|
2015-03-17 17:59:05 -04:00
|
|
|
<button class='btn ok no-text' {{action "saveTrustLevel" target="content"}}>{{fa-icon "check"}}</button>
|
|
|
|
<button class='btn cancel no-text' {{action "restoreTrustLevel" target="content"}}>{{fa-icon "times"}}</button>
|
2014-01-22 17:09:56 -05:00
|
|
|
</div>
|
|
|
|
{{/if}}
|
2013-07-01 10:22:21 -04:00
|
|
|
</div>
|
2014-09-29 23:12:33 -04:00
|
|
|
<div class="controls">
|
|
|
|
{{#if model.canLockTrustLevel}}
|
|
|
|
{{#if model.trust_level_locked}}
|
2014-12-08 16:35:49 -05:00
|
|
|
<i title='{{i18n 'admin.user.trust_level_locked_tip'}}' {{action "lockTrustLevel" false target="model"}} class='fa fa-lock'></i> <button class="btn" {{action "lockTrustLevel" false target="model"}}>{{i18n 'admin.user.unlock_trust_level'}}</button>
|
2014-09-29 23:12:33 -04:00
|
|
|
{{else}}
|
2014-12-08 16:35:49 -05:00
|
|
|
<i title='{{i18n 'admin.user.trust_level_unlocked_tip'}}' class='fa fa-unlock'></i> <button class="btn" {{action "lockTrustLevel" true target="model"}}>{{i18n 'admin.user.lock_trust_level'}}</button>
|
2014-09-29 23:12:33 -04:00
|
|
|
{{/if}}
|
|
|
|
{{/if}}
|
|
|
|
{{#if tl3Requirements}}
|
2014-12-08 16:35:49 -05:00
|
|
|
{{#link-to 'adminUser.tl3Requirements' this class="btn"}}{{i18n 'admin.user.trust_level_3_requirements'}}{{/link-to}}
|
2014-09-29 23:12:33 -04:00
|
|
|
{{/if}}
|
|
|
|
</div>
|
2013-03-20 20:25:41 -04:00
|
|
|
</div>
|
2013-07-01 10:22:21 -04:00
|
|
|
|
2014-01-14 12:48:57 -05:00
|
|
|
<div {{bind-attr class=":display-row isSuspended:highlight-danger"}}>
|
2014-12-08 16:35:49 -05:00
|
|
|
<div class='field'>{{i18n 'admin.user.suspended'}}</div>
|
2013-11-07 13:53:32 -05:00
|
|
|
<div class='value'>{{isSuspended}}</div>
|
2013-02-05 14:16:51 -05:00
|
|
|
<div class='controls'>
|
2013-11-07 13:53:32 -05:00
|
|
|
{{#if isSuspended}}
|
2014-09-30 12:36:23 -04:00
|
|
|
<button class='btn btn-danger' {{action "unsuspend" target="content"}}>
|
2015-03-17 17:59:05 -04:00
|
|
|
{{fa-icon "ban"}}
|
2014-12-08 16:35:49 -05:00
|
|
|
{{i18n 'admin.user.unsuspend'}}
|
2013-03-20 20:25:41 -04:00
|
|
|
</button>
|
2013-11-07 13:53:32 -05:00
|
|
|
{{suspendDuration}}
|
2014-12-08 16:35:49 -05:00
|
|
|
{{i18n 'admin.user.suspended_explanation'}}
|
2013-02-05 14:16:51 -05:00
|
|
|
{{else}}
|
2013-11-07 13:53:32 -05:00
|
|
|
{{#if canSuspend}}
|
2014-09-30 12:36:23 -04:00
|
|
|
<button class='btn btn-danger' {{action "showSuspendModal" this}}>
|
2015-03-17 17:59:05 -04:00
|
|
|
{{fa-icon "ban"}}
|
2014-12-08 16:35:49 -05:00
|
|
|
{{i18n 'admin.user.suspend'}}
|
2013-02-05 14:16:51 -05:00
|
|
|
</button>
|
2014-12-08 16:35:49 -05:00
|
|
|
{{i18n 'admin.user.suspended_explanation'}}
|
2013-02-05 14:16:51 -05:00
|
|
|
{{/if}}
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
2013-03-20 20:25:41 -04:00
|
|
|
</div>
|
2013-11-01 10:47:03 -04:00
|
|
|
|
2013-11-07 13:53:32 -05:00
|
|
|
{{#if isSuspended}}
|
2015-03-17 17:59:05 -04:00
|
|
|
<div class='display-row highlight-danger'>
|
|
|
|
<div class='field'>{{i18n 'admin.user.suspended_by'}}</div>
|
|
|
|
<div class='value'>
|
|
|
|
{{#link-to 'adminUser' suspendedBy}}{{avatar suspendedBy imageSize="tiny"}}{{/link-to}}
|
|
|
|
{{#link-to 'adminUser' suspendedBy}}{{suspendedBy.username}}{{/link-to}}
|
|
|
|
</div>
|
|
|
|
<div class='controls'>
|
|
|
|
<b>{{i18n 'admin.user.suspend_reason'}}</b>:
|
|
|
|
{{suspend_reason}}
|
|
|
|
</div>
|
2013-11-05 14:41:04 -05:00
|
|
|
</div>
|
2013-11-01 10:47:03 -04:00
|
|
|
{{/if}}
|
|
|
|
|
2014-01-14 12:48:57 -05:00
|
|
|
<div class='display-row' {{bind-attr class=":display-row blocked:highlight-danger"}}>
|
2014-12-08 16:35:49 -05:00
|
|
|
<div class='field'>{{i18n 'admin.user.blocked'}}</div>
|
2013-05-31 11:41:40 -04:00
|
|
|
<div class='value'>{{blocked}}</div>
|
|
|
|
<div class='controls'>
|
|
|
|
{{#if blocked}}
|
2014-09-30 12:36:23 -04:00
|
|
|
<button class='btn' {{action "unblock" target="content"}}>
|
2015-03-17 17:59:05 -04:00
|
|
|
{{fa-icon "thumbs-o-up"}}
|
2014-12-08 16:35:49 -05:00
|
|
|
{{i18n 'admin.user.unblock'}}
|
2013-05-31 11:41:40 -04:00
|
|
|
</button>
|
2014-12-08 16:35:49 -05:00
|
|
|
{{i18n 'admin.user.block_explanation'}}
|
2013-05-31 11:41:40 -04:00
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
</div>
|
2013-02-05 14:16:51 -05:00
|
|
|
</section>
|
|
|
|
|
2015-03-25 15:16:47 -04:00
|
|
|
<section class='details'>
|
|
|
|
<h1>{{i18n 'admin.groups.title'}}</h1>
|
|
|
|
|
|
|
|
{{#if currentUser.admin}}
|
|
|
|
<div class='display-row'>
|
|
|
|
<div class='field'>{{i18n 'admin.groups.automatic'}}</div>
|
|
|
|
<div class='value'>{{automaticGroups}}</div>
|
|
|
|
</div>
|
|
|
|
<div class='display-row'>
|
|
|
|
<div class='field'>{{i18n 'admin.groups.custom'}}</div>
|
|
|
|
<div class='value'>
|
|
|
|
{{admin-group-selector selected=customGroups available=availableGroups}}
|
|
|
|
</div>
|
|
|
|
<div class='controls'>
|
|
|
|
{{#if customGroups}}
|
|
|
|
{{i18n 'admin.groups.primary'}}
|
|
|
|
{{combo-box content=customGroups value=primary_group_id nameProperty="name" none="admin.groups.no_primary"}}
|
|
|
|
{{/if}}
|
|
|
|
{{#if primaryGroupDirty}}
|
|
|
|
{{d-button icon="check" class="ok no-text" action="savePrimaryGroup"}}
|
|
|
|
{{d-button icon="times" class="cancel no-text" action="resetPrimaryGroup"}}
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
</section>
|
|
|
|
|
2013-02-05 14:16:51 -05:00
|
|
|
<section class='details'>
|
2014-12-08 16:35:49 -05:00
|
|
|
<h1>{{i18n 'admin.user.activity'}}</h1>
|
2013-02-05 14:16:51 -05:00
|
|
|
|
|
|
|
<div class='display-row'>
|
2014-12-08 16:35:49 -05:00
|
|
|
<div class='field'>{{i18n 'created'}}</div>
|
2013-05-20 15:27:58 -04:00
|
|
|
<div class='value'>{{{created_at_age}}}</div>
|
2013-02-05 14:16:51 -05:00
|
|
|
</div>
|
|
|
|
<div class='display-row'>
|
2014-12-08 16:35:49 -05:00
|
|
|
<div class='field'>{{i18n 'admin.users.last_emailed'}}</div>
|
2013-05-20 15:27:58 -04:00
|
|
|
<div class='value'>{{{last_emailed_age}}}</div>
|
2013-02-05 14:16:51 -05:00
|
|
|
</div>
|
|
|
|
<div class='display-row'>
|
2014-12-08 16:35:49 -05:00
|
|
|
<div class='field'>{{i18n 'last_seen'}}</div>
|
2013-05-20 15:27:58 -04:00
|
|
|
<div class='value'>{{{last_seen_age}}}</div>
|
2013-02-05 14:16:51 -05:00
|
|
|
</div>
|
|
|
|
<div class='display-row'>
|
2014-12-08 16:35:49 -05:00
|
|
|
<div class='field'>{{i18n 'admin.user.like_count'}}</div>
|
2014-08-22 15:23:10 -04:00
|
|
|
<div class='value'>{{like_given_count}} / {{like_count}}</div>
|
2013-02-05 14:16:51 -05:00
|
|
|
</div>
|
|
|
|
<div class='display-row'>
|
2014-12-08 16:35:49 -05:00
|
|
|
<div class='field'>{{i18n 'admin.user.topics_entered'}}</div>
|
2013-05-20 15:27:58 -04:00
|
|
|
<div class='value'>{{topics_entered}}</div>
|
2013-03-20 20:25:41 -04:00
|
|
|
</div>
|
2013-02-05 14:16:51 -05:00
|
|
|
<div class='display-row'>
|
2014-12-08 16:35:49 -05:00
|
|
|
<div class='field'>{{i18n 'admin.user.post_count'}}</div>
|
2013-05-20 15:27:58 -04:00
|
|
|
<div class='value'>{{post_count}}</div>
|
2013-02-07 02:11:56 -05:00
|
|
|
<div class='controls'>
|
2013-05-20 15:27:58 -04:00
|
|
|
{{#if can_delete_all_posts}}
|
2015-03-17 11:18:39 -04:00
|
|
|
{{#if post_count}}
|
|
|
|
<button class='btn btn-danger' {{action "deleteAllPosts" target="content"}}>
|
2015-03-17 17:59:05 -04:00
|
|
|
{{fa-icon "trash-o"}}
|
2015-03-17 11:18:39 -04:00
|
|
|
{{i18n 'admin.user.delete_all_posts'}}
|
|
|
|
</button>
|
|
|
|
{{/if}}
|
2014-02-20 12:29:40 -05:00
|
|
|
{{else}}
|
|
|
|
{{deleteAllPostsExplanation}}
|
2013-02-07 02:11:56 -05:00
|
|
|
{{/if}}
|
|
|
|
</div>
|
2013-02-05 14:16:51 -05:00
|
|
|
</div>
|
|
|
|
<div class='display-row'>
|
2014-12-08 16:35:49 -05:00
|
|
|
<div class='field'>{{i18n 'admin.user.posts_read_count'}}</div>
|
2013-05-20 15:27:58 -04:00
|
|
|
<div class='value'>{{posts_read_count}}</div>
|
2013-03-20 20:25:41 -04:00
|
|
|
</div>
|
2014-09-08 11:11:56 -04:00
|
|
|
<div class='display-row'>
|
2014-12-08 16:35:49 -05:00
|
|
|
<div class='field'>{{i18n 'admin.user.warnings_received_count'}}</div>
|
2014-09-08 11:11:56 -04:00
|
|
|
<div class='value'>{{warnings_received_count}}</div>
|
|
|
|
</div>
|
2013-02-05 14:16:51 -05:00
|
|
|
<div class='display-row'>
|
2014-12-08 16:35:49 -05:00
|
|
|
<div class='field'>{{i18n 'admin.user.flags_given_received_count'}}</div>
|
2014-08-22 15:23:10 -04:00
|
|
|
<div class='value'>{{flags_given_count}} / {{flags_received_count}}</div>
|
2013-03-20 20:25:41 -04:00
|
|
|
</div>
|
2013-02-05 14:16:51 -05:00
|
|
|
<div class='display-row'>
|
2014-12-08 16:35:49 -05:00
|
|
|
<div class='field'>{{i18n 'admin.user.private_topics_count'}}</div>
|
2013-05-20 15:27:58 -04:00
|
|
|
<div class='value'>{{private_topics_count}}</div>
|
2013-02-05 14:16:51 -05:00
|
|
|
</div>
|
|
|
|
<div class='display-row'>
|
2014-12-08 16:35:49 -05:00
|
|
|
<div class='field'>{{i18n 'admin.user.time_read'}}</div>
|
2013-05-20 15:27:58 -04:00
|
|
|
<div class='value'>{{{time_read}}}</div>
|
2013-03-20 20:25:41 -04:00
|
|
|
</div>
|
2013-02-05 14:16:51 -05:00
|
|
|
<div class='display-row'>
|
2014-12-08 16:35:49 -05:00
|
|
|
<div class='field'>{{i18n 'user.invited.days_visited'}}</div>
|
2013-05-20 15:27:58 -04:00
|
|
|
<div class='value'>{{{days_visited}}}</div>
|
2013-03-20 20:25:41 -04:00
|
|
|
</div>
|
2013-02-05 14:16:51 -05:00
|
|
|
</section>
|
|
|
|
|
2014-08-22 20:34:48 -04:00
|
|
|
{{#if single_sign_on_record}}
|
|
|
|
<section class='details'>
|
2014-12-08 16:35:49 -05:00
|
|
|
<h1>{{i18n 'admin.user.sso.title'}}</h1>
|
2014-08-22 20:34:48 -04:00
|
|
|
|
|
|
|
{{#with single_sign_on_record}}
|
|
|
|
<div class='display-row'>
|
2014-12-08 16:35:49 -05:00
|
|
|
<div class='field'>{{i18n 'admin.user.sso.external_id'}}</div>
|
2014-08-22 20:34:48 -04:00
|
|
|
<div class='value'>{{external_id}}</div>
|
|
|
|
</div>
|
|
|
|
<div class='display-row'>
|
2014-12-08 16:35:49 -05:00
|
|
|
<div class='field'>{{i18n 'admin.user.sso.external_username'}}</div>
|
2014-08-22 20:34:48 -04:00
|
|
|
<div class='value'>{{external_username}}</div>
|
|
|
|
</div>
|
|
|
|
<div class='display-row'>
|
2014-12-08 16:35:49 -05:00
|
|
|
<div class='field'>{{i18n 'admin.user.sso.external_name'}}</div>
|
2014-08-22 20:34:48 -04:00
|
|
|
<div class='value'>{{external_name}}</div>
|
|
|
|
</div>
|
|
|
|
<div class='display-row'>
|
2014-12-08 16:35:49 -05:00
|
|
|
<div class='field'>{{i18n 'admin.user.sso.external_email'}}</div>
|
2014-08-22 20:34:48 -04:00
|
|
|
<div class='value'>{{external_email}}</div>
|
|
|
|
</div>
|
|
|
|
<div class='display-row'>
|
2014-12-08 16:35:49 -05:00
|
|
|
<div class='field'>{{i18n 'admin.user.sso.external_avatar_url'}}</div>
|
2014-08-22 20:34:48 -04:00
|
|
|
<div class='value'>{{external_avatar_url}}</div>
|
|
|
|
</div>
|
|
|
|
{{/with}}
|
|
|
|
</section>
|
|
|
|
{{/if}}
|
|
|
|
|
2013-04-11 16:04:20 -04:00
|
|
|
<section>
|
|
|
|
<hr/>
|
2015-03-10 13:06:08 -04:00
|
|
|
<div class="pull-right">
|
|
|
|
{{#unless anonymizeForbidden}}
|
|
|
|
{{d-button label="admin.user.anonymize"
|
|
|
|
icon="exclamation-triangle"
|
2015-03-19 14:57:07 -04:00
|
|
|
class="btn-danger"
|
2015-03-10 13:06:08 -04:00
|
|
|
disabled=anonymizeForbidden
|
|
|
|
action="anonymize"}}
|
|
|
|
{{/unless}}
|
|
|
|
|
|
|
|
{{#unless deleteForbidden}}
|
|
|
|
{{d-button label="admin.user.delete"
|
|
|
|
icon="exclamation-triangle"
|
2015-03-19 14:57:07 -04:00
|
|
|
class="btn-danger"
|
2015-03-10 13:06:08 -04:00
|
|
|
disabled=deleteForbidden
|
|
|
|
action="destroy"}}
|
|
|
|
{{/unless}}
|
|
|
|
</div>
|
|
|
|
|
2013-12-20 11:36:43 -05:00
|
|
|
{{#if deleteExplanation}}
|
|
|
|
<div class="clearfix"></div>
|
2015-03-10 13:06:08 -04:00
|
|
|
<br/>
|
2015-03-17 17:59:05 -04:00
|
|
|
<div class="pull-right">
|
|
|
|
{{fa-icon "exclamation-triangle"}} {{deleteExplanation}}
|
|
|
|
</div>
|
2013-12-20 11:36:43 -05:00
|
|
|
{{/if}}
|
2013-04-11 16:04:20 -04:00
|
|
|
</section>
|
|
|
|
<div class="clearfix"></div>
|