2013-02-05 14:16:51 -05:00
|
|
|
<div class='admin-controls'>
|
|
|
|
<div class='span15'>
|
|
|
|
<ul class="nav nav-pills">
|
2013-07-15 19:47:13 -04:00
|
|
|
<li>{{#linkTo 'adminUsersList.active'}}{{i18n admin.users.nav.active}}{{/linkTo}}</li>
|
|
|
|
<li>{{#linkTo 'adminUsersList.new'}}{{i18n admin.users.nav.new}}{{/linkTo}}</li>
|
2013-02-05 14:16:51 -05:00
|
|
|
{{#if Discourse.SiteSettings.must_approve_users}}
|
2013-07-15 19:47:13 -04:00
|
|
|
<li>{{#linkTo 'adminUsersList.pending'}}{{i18n admin.users.nav.pending}}{{/linkTo}}</li>
|
2013-02-05 14:16:51 -05:00
|
|
|
{{/if}}
|
2013-07-15 19:47:13 -04:00
|
|
|
<li>{{#linkTo 'adminUsersList.admins'}}{{i18n admin.users.nav.admins}}{{/linkTo}}</li>
|
|
|
|
<li>{{#linkTo 'adminUsersList.moderators'}}{{i18n admin.users.nav.moderators}}{{/linkTo}}</li>
|
|
|
|
<li>{{#linkTo 'adminUsersList.banned'}}{{i18n admin.users.nav.banned}}{{/linkTo}}</li>
|
|
|
|
<li>{{#linkTo 'adminUsersList.blocked'}}{{i18n admin.users.nav.blocked}}{{/linkTo}}</li>
|
2013-02-05 14:16:51 -05:00
|
|
|
</ul>
|
2013-03-06 12:07:09 -05:00
|
|
|
</div>
|
2013-02-05 14:16:51 -05:00
|
|
|
<div class='span5 username controls'>
|
2013-05-20 12:47:59 -04:00
|
|
|
{{textField value=username placeholderKey="username"}}
|
2013-02-05 14:16:51 -05:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{{#if hasSelection}}
|
|
|
|
<div id='selected-controls'>
|
2013-05-20 12:47:59 -04:00
|
|
|
<button {{action approveUsers}} class='btn'>{{countI18n admin.users.approved_selected countBinding="selectedCount"}}</button>
|
2013-02-05 14:16:51 -05:00
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
|
2013-04-23 10:29:18 -04:00
|
|
|
<h2>{{title}}</h2>
|
|
|
|
<br/>
|
|
|
|
|
|
|
|
{{#if loading}}
|
|
|
|
<div class='admin-loading'>{{i18n loading}}</div>
|
|
|
|
{{else}}
|
2013-05-20 15:27:58 -04:00
|
|
|
{{#if model.length}}
|
2013-04-23 10:29:18 -04:00
|
|
|
<table class='table'>
|
|
|
|
<tr>
|
|
|
|
{{#if showApproval}}
|
|
|
|
<th>{{view Ember.Checkbox checkedBinding="selectAll"}}</th>
|
|
|
|
{{/if}}
|
|
|
|
<th> </th>
|
|
|
|
<th>{{i18n username}}</th>
|
|
|
|
<th>{{i18n email}}</th>
|
|
|
|
<th>{{i18n admin.users.last_emailed}}</th>
|
|
|
|
<th>{{i18n last_seen}}</th>
|
|
|
|
<th>{{i18n admin.user.topics_entered}}</th>
|
|
|
|
<th>{{i18n admin.user.posts_read_count}}</th>
|
|
|
|
<th>{{i18n admin.user.time_read}}</th>
|
|
|
|
<th>{{i18n created}}</th>
|
|
|
|
{{#if showApproval}}
|
|
|
|
<th>{{i18n admin.users.approved}}</th>
|
|
|
|
{{/if}}
|
|
|
|
<th> </th>
|
2013-02-05 14:16:51 -05:00
|
|
|
|
2013-04-23 10:29:18 -04:00
|
|
|
</tr>
|
2013-02-05 14:16:51 -05:00
|
|
|
|
2013-05-20 15:27:58 -04:00
|
|
|
{{#each model}}
|
2013-04-23 10:29:18 -04:00
|
|
|
<tr {{bindAttr class="selected"}}>
|
2013-07-15 11:28:41 -04:00
|
|
|
{{#if controller.showApproval}}
|
2013-04-23 10:29:18 -04:00
|
|
|
<td>
|
|
|
|
{{#if can_approve}}
|
|
|
|
{{view Ember.Checkbox checkedBinding="selected"}}
|
|
|
|
{{/if}}
|
|
|
|
</td>
|
|
|
|
{{/if}}
|
2013-05-07 13:30:12 -04:00
|
|
|
<td>{{#linkTo 'adminUser' this}}{{avatar this imageSize="small"}}{{/linkTo}}</td>
|
|
|
|
<td>{{#linkTo 'adminUser' this}}{{unbound username}}{{/linkTo}}</td>
|
2013-04-23 10:29:18 -04:00
|
|
|
<td>{{shorten email}}</td>
|
|
|
|
<td>{{{unbound last_emailed_age}}}</td>
|
|
|
|
<td>{{{unbound last_seen_age}}}</td>
|
|
|
|
<td>{{{unbound topics_entered}}}</td>
|
|
|
|
<td>{{{unbound posts_read_count}}}</td>
|
|
|
|
<td>{{{unbound time_read}}}</td>
|
2013-03-06 12:07:09 -05:00
|
|
|
|
2013-04-23 10:29:18 -04:00
|
|
|
<td>{{{unbound created_at_age}}}</td>
|
2013-03-06 12:07:09 -05:00
|
|
|
|
2013-05-20 12:47:59 -04:00
|
|
|
{{#if showApproval}}
|
2013-04-23 10:29:18 -04:00
|
|
|
<td>
|
|
|
|
{{#if approved}}
|
|
|
|
{{i18n yes_value}}
|
|
|
|
{{else}}
|
|
|
|
{{i18n no_value}}
|
|
|
|
{{/if}}
|
|
|
|
</td>
|
2013-02-05 14:16:51 -05:00
|
|
|
{{/if}}
|
2013-04-23 10:29:18 -04:00
|
|
|
<td>
|
|
|
|
{{#if admin}}<i class="icon-trophy" title="{{i18n admin.title}}"></i>{{/if}}
|
|
|
|
{{#if moderator}}<i class="icon-magic" title="{{i18n admin.moderator}}"></i>{{/if}}
|
|
|
|
<td>
|
|
|
|
</tr>
|
|
|
|
{{/each}}
|
2013-02-05 14:16:51 -05:00
|
|
|
|
2013-04-23 10:29:18 -04:00
|
|
|
</table>
|
|
|
|
{{else}}
|
|
|
|
<p>{{i18n search.no_results}}</p>
|
|
|
|
{{/if}}
|
2013-03-14 08:01:52 -04:00
|
|
|
{{/if}}
|