2013-08-09 16:58:57 -04:00
|
|
|
<div class="staff-action-logs-controls">
|
2017-05-30 11:25:42 -04:00
|
|
|
{{#if filtersExists}}
|
2017-11-01 16:05:00 -04:00
|
|
|
<div class='staff-action-logs-filters'>
|
2017-05-30 11:25:42 -04:00
|
|
|
<a {{action "clearAllFilters"}} class="clear-filters filter">
|
|
|
|
<span class="label">{{i18n 'admin.logs.staff_actions.clear_filters'}}</span>
|
2013-08-09 16:58:57 -04:00
|
|
|
</a>
|
2017-05-30 11:25:42 -04:00
|
|
|
{{#if actionFilter}}
|
|
|
|
<a {{action "clearFilter" "actionFilter"}} class="filter">
|
|
|
|
<span class="label">{{i18n 'admin.logs.action'}}</span>: {{actionFilter}}
|
2017-07-26 16:25:09 -04:00
|
|
|
{{d-icon "times-circle"}}
|
2017-05-30 11:25:42 -04:00
|
|
|
</a>
|
|
|
|
{{/if}}
|
|
|
|
{{#if filters.acting_user}}
|
|
|
|
<a {{action "clearFilter" "acting_user"}} class="filter">
|
|
|
|
<span class="label">{{i18n 'admin.logs.staff_actions.staff_user'}}</span>: {{filters.acting_user}}
|
2017-07-26 16:25:09 -04:00
|
|
|
{{d-icon "times-circle"}}
|
2017-05-30 11:25:42 -04:00
|
|
|
</a>
|
|
|
|
{{/if}}
|
|
|
|
{{#if filters.target_user}}
|
|
|
|
<a {{action "clearFilter" "target_user"}} class="filter">
|
|
|
|
<span class="label">{{i18n 'admin.logs.staff_actions.target_user'}}</span>: {{filters.target_user}}
|
2017-07-26 16:25:09 -04:00
|
|
|
{{d-icon "times-circle"}}
|
2017-05-30 11:25:42 -04:00
|
|
|
</a>
|
|
|
|
{{/if}}
|
|
|
|
{{#if filters.subject}}
|
|
|
|
<a {{action "clearFilter" "subject"}} class="filter">
|
|
|
|
<span class="label">{{i18n 'admin.logs.staff_actions.subject'}}</span>: {{filters.subject}}
|
2017-07-26 16:25:09 -04:00
|
|
|
{{d-icon "times-circle"}}
|
2017-05-30 11:25:42 -04:00
|
|
|
</a>
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
{{else}}
|
2017-10-19 15:51:08 -04:00
|
|
|
{{i18n "admin.logs.staff_actions.filter"}} {{combo-box content=userHistoryActions value=filterActionId none="admin.logs.staff_actions.all"}}
|
2013-08-09 16:58:57 -04:00
|
|
|
{{/if}}
|
2018-10-02 13:46:43 -04:00
|
|
|
|
2018-10-24 16:09:36 -04:00
|
|
|
{{d-button class="btn-default" action="exportStaffActionLogs" label="admin.export_csv.button_text" icon="download"}}
|
2013-10-31 12:17:06 -04:00
|
|
|
</div>
|
2017-05-30 11:25:42 -04:00
|
|
|
<div class="clearfix"></div>
|
2013-10-31 12:17:06 -04:00
|
|
|
|
2018-02-13 15:58:32 -05:00
|
|
|
{{#staff-actions}}
|
2015-04-28 17:05:06 -04:00
|
|
|
{{#conditional-loading-spinner condition=loading}}
|
2018-07-02 23:14:53 -04:00
|
|
|
|
|
|
|
<table class='table staff-logs grid'>
|
|
|
|
|
|
|
|
<thead>
|
|
|
|
<th>{{i18n 'admin.logs.staff_actions.staff_user'}}</th>
|
|
|
|
<th>{{i18n 'admin.logs.action'}}</th>
|
|
|
|
<th>{{i18n 'admin.logs.staff_actions.subject'}}</th>
|
|
|
|
<th>{{i18n 'admin.logs.staff_actions.when'}}</th>
|
|
|
|
<th>{{i18n 'admin.logs.staff_actions.details'}}</th>
|
|
|
|
<th>{{i18n 'admin.logs.staff_actions.context'}}</th>
|
|
|
|
</thead>
|
|
|
|
|
|
|
|
<tbody>
|
|
|
|
|
2016-11-24 12:58:06 -05:00
|
|
|
{{#each model as |item|}}
|
2018-07-02 23:14:53 -04:00
|
|
|
<tr class='admin-list-item'>
|
|
|
|
<td class="staff-users">
|
|
|
|
<div class="staff-user">
|
2018-10-02 13:46:43 -04:00
|
|
|
{{#if item.acting_user}}
|
|
|
|
{{#link-to 'adminUser' item.acting_user}}{{avatar item.acting_user imageSize="tiny"}}{{/link-to}}
|
|
|
|
<a {{action "filterByStaffUser" item.acting_user}}>{{item.acting_user.username}}</a>
|
|
|
|
{{else}}
|
|
|
|
<span class="deleted-user" title="{{i18n 'admin.user.deleted'}}">
|
|
|
|
{{d-icon "trash-o"}}
|
|
|
|
</span>
|
|
|
|
{{/if}}
|
2018-07-02 23:14:53 -04:00
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
<td class="col value action">
|
|
|
|
<a {{action "filterByAction" item}}>{{item.actionName}}</a>
|
|
|
|
</td>
|
|
|
|
<td class="col value subject">
|
|
|
|
<div class="subject">
|
|
|
|
|
2016-11-24 12:58:06 -05:00
|
|
|
{{#if item.target_user}}
|
|
|
|
{{#link-to 'adminUser' item.target_user}}{{avatar item.target_user imageSize="tiny"}}{{/link-to}}
|
2018-07-02 23:14:53 -04:00
|
|
|
<a {{action "filterByTargetUser" item.target_user}}>{{item.target_user.username}}</a>
|
2016-11-24 12:58:06 -05:00
|
|
|
{{/if}}
|
|
|
|
{{#if item.subject}}
|
2018-07-02 23:14:53 -04:00
|
|
|
<a {{action "filterBySubject" item.subject}} title={{item.subject}}>{{item.subject}}</a>
|
2016-11-24 12:58:06 -05:00
|
|
|
{{/if}}
|
2018-07-02 23:14:53 -04:00
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
<td class="col value created-at">{{age-with-tooltip item.created_at}}</td>
|
|
|
|
<td class="col value details">
|
2016-11-24 12:58:06 -05:00
|
|
|
{{{item.formattedDetails}}}
|
|
|
|
{{#if item.useCustomModalForDetails}}
|
2018-07-02 23:14:53 -04:00
|
|
|
<a {{action "showCustomDetailsModal" item}}>{{d-icon "info-circle"}} {{i18n 'admin.logs.staff_actions.show'}}</a>
|
2016-11-24 12:58:06 -05:00
|
|
|
{{/if}}
|
|
|
|
{{#if item.useModalForDetails}}
|
2018-07-02 23:14:53 -04:00
|
|
|
<a {{action "showDetailsModal" item}}>{{d-icon "info-circle"}} {{i18n 'admin.logs.staff_actions.show'}}</a>
|
2016-11-24 12:58:06 -05:00
|
|
|
{{/if}}
|
2018-07-02 23:14:53 -04:00
|
|
|
</td>
|
|
|
|
<td class="col value context">{{item.context}}</td>
|
|
|
|
</tr>
|
2013-08-09 10:06:02 -04:00
|
|
|
{{else}}
|
2014-12-08 16:35:49 -05:00
|
|
|
{{i18n 'search.no_results'}}
|
2016-11-24 12:58:06 -05:00
|
|
|
{{/each}}
|
2018-07-02 23:14:53 -04:00
|
|
|
</tbody>
|
|
|
|
</table>
|
2015-04-28 17:05:06 -04:00
|
|
|
{{/conditional-loading-spinner}}
|
2018-07-02 23:14:53 -04:00
|
|
|
|
2018-02-13 15:58:32 -05:00
|
|
|
{{/staff-actions}}
|