2013-02-05 14:16:51 -05:00
|
|
|
<div class='admin-controls'>
|
|
|
|
<div class='span15'>
|
|
|
|
<ul class="nav nav-pills">
|
2013-09-16 14:08:55 -04:00
|
|
|
<li>{{#link-to 'adminUsersList.active'}}{{i18n admin.users.nav.active}}{{/link-to}}</li>
|
|
|
|
<li>{{#link-to 'adminUsersList.new'}}{{i18n admin.users.nav.new}}{{/link-to}}</li>
|
2014-09-11 16:30:47 -04:00
|
|
|
{{#if mustApproveUsers}}
|
2013-09-16 14:08:55 -04:00
|
|
|
<li>{{#link-to 'adminUsersList.pending'}}{{i18n admin.users.nav.pending}}{{/link-to}}</li>
|
2013-02-05 14:16:51 -05:00
|
|
|
{{/if}}
|
2013-09-16 14:08:55 -04:00
|
|
|
<li>{{#link-to 'adminUsersList.admins'}}{{i18n admin.users.nav.admins}}{{/link-to}}</li>
|
|
|
|
<li>{{#link-to 'adminUsersList.moderators'}}{{i18n admin.users.nav.moderators}}{{/link-to}}</li>
|
2013-11-07 13:53:32 -05:00
|
|
|
<li>{{#link-to 'adminUsersList.suspended'}}{{i18n admin.users.nav.suspended}}{{/link-to}}</li>
|
2013-09-16 14:08:55 -04:00
|
|
|
<li>{{#link-to 'adminUsersList.blocked'}}{{i18n admin.users.nav.blocked}}{{/link-to}}</li>
|
2013-02-05 14:16:51 -05:00
|
|
|
</ul>
|
2013-03-06 12:07:09 -05:00
|
|
|
</div>
|
2014-06-05 05:57:56 -04:00
|
|
|
<div class='username controls'>
|
2014-06-16 19:17:41 -04:00
|
|
|
{{text-field value=username placeholderKey="search_hint"}}
|
2013-02-05 14:16:51 -05:00
|
|
|
</div>
|
2014-08-09 06:28:57 -04:00
|
|
|
<div class="pull-right">
|
|
|
|
<button {{action exportUsers}} class="btn" title="{{i18n admin.export_csv.users.title}}"><i class="fa fa-download"></i>{{i18n admin.export_csv.users.text}}</button>
|
|
|
|
</div>
|
2013-02-05 14:16:51 -05:00
|
|
|
</div>
|
|
|
|
|
2013-11-16 14:14:34 -05:00
|
|
|
<div class="admin-container">
|
|
|
|
{{#if hasSelection}}
|
|
|
|
<div id='selected-controls'>
|
|
|
|
<button {{action approveUsers}} class='btn'>{{countI18n admin.users.approved_selected countBinding="selectedCount"}}</button>
|
|
|
|
<button {{action rejectUsers}} class='btn btn-danger'>{{countI18n admin.users.reject_selected countBinding="selectedCount"}}</button>
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
<h2>{{title}}</h2>
|
|
|
|
<br/>
|
|
|
|
|
|
|
|
{{#if loading}}
|
|
|
|
<div class='admin-loading'>{{i18n loading}}</div>
|
|
|
|
{{else}}
|
|
|
|
{{#if model.length}}
|
|
|
|
<table class='table'>
|
|
|
|
<tr>
|
|
|
|
{{#if showApproval}}
|
|
|
|
<th>{{view Ember.Checkbox checkedBinding="selectAll"}}</th>
|
|
|
|
{{/if}}
|
|
|
|
<th> </th>
|
|
|
|
<th>{{i18n username}}</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-11-16 14:14:34 -05:00
|
|
|
</tr>
|
2013-04-23 10:29:18 -04:00
|
|
|
|
2013-11-16 14:14:34 -05:00
|
|
|
{{#each model}}
|
2014-09-03 10:09:30 -04:00
|
|
|
<tr {{bind-attr class="selected active::not-activated"}}>
|
2013-11-16 14:14:34 -05:00
|
|
|
{{#if controller.showApproval}}
|
|
|
|
<td>
|
|
|
|
{{#if can_approve}}
|
|
|
|
{{view Ember.Checkbox checkedBinding="selected"}}
|
|
|
|
{{/if}}
|
|
|
|
</td>
|
|
|
|
{{/if}}
|
|
|
|
<td>{{#link-to 'adminUser' this}}{{avatar this imageSize="small"}}{{/link-to}}</td>
|
|
|
|
<td>{{#link-to 'adminUser' this}}{{unbound username}}{{/link-to}}</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-02-05 14:16:51 -05:00
|
|
|
|
2013-11-16 14:14:34 -05:00
|
|
|
<td>{{{unbound created_at_age}}}</td>
|
2013-02-05 14:16:51 -05:00
|
|
|
|
2013-11-16 14:14:34 -05:00
|
|
|
{{#if showApproval}}
|
2013-04-23 10:29:18 -04:00
|
|
|
<td>
|
2013-11-16 14:14:34 -05:00
|
|
|
{{#if approved}}
|
|
|
|
{{i18n yes_value}}
|
|
|
|
{{else}}
|
|
|
|
{{i18n no_value}}
|
2013-04-23 10:29:18 -04:00
|
|
|
{{/if}}
|
|
|
|
</td>
|
|
|
|
{{/if}}
|
2013-11-16 14:14:34 -05:00
|
|
|
<td>
|
2014-08-25 01:20:59 -04:00
|
|
|
{{#if admin}}<i class="fa fa-shield" title="{{i18n admin.title}}"></i>{{/if}}
|
2014-08-26 01:49:26 -04:00
|
|
|
{{#if moderator}}<i class="fa fa-shield" title="{{i18n admin.moderator}}"></i>{{/if}}
|
2013-11-16 14:14:34 -05:00
|
|
|
<td>
|
|
|
|
</tr>
|
|
|
|
{{/each}}
|
2013-02-05 14:16:51 -05:00
|
|
|
|
2013-11-16 14:14:34 -05:00
|
|
|
</table>
|
|
|
|
{{else}}
|
|
|
|
<p>{{i18n search.no_results}}</p>
|
|
|
|
{{/if}}
|
2013-04-23 10:29:18 -04:00
|
|
|
{{/if}}
|
2014-01-14 12:48:57 -05:00
|
|
|
</div>
|