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">
|
2020-02-11 09:55:16 -05:00
|
|
|
<a href {{action "clearAllFilters"}} class="clear-filters filter">
|
2017-05-30 11:25:42 -04:00
|
|
|
<span class="label">{{i18n "admin.logs.staff_actions.clear_filters"}}</span>
|
|
|
|
</a>
|
|
|
|
{{#if actionFilter}}
|
2020-02-11 09:55:16 -05:00
|
|
|
<a href {{action "clearFilter" "actionFilter"}} class="filter">
|
2017-05-30 11:25:42 -04:00
|
|
|
<span class="label">{{i18n "admin.logs.action"}}</span>: {{actionFilter}}
|
2017-07-26 16:25:09 -04:00
|
|
|
{{d-icon "times-circle"}}
|
2020-04-13 11:17:20 -04:00
|
|
|
</a>
|
2017-05-30 11:25:42 -04:00
|
|
|
{{/if}}
|
|
|
|
{{#if filters.acting_user}}
|
2020-02-11 09:55:16 -05:00
|
|
|
<a href {{action "clearFilter" "acting_user"}} class="filter">
|
2017-05-30 11:25:42 -04:00
|
|
|
<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}}
|
2020-02-11 09:55:16 -05:00
|
|
|
<a href {{action "clearFilter" "target_user"}} class="filter">
|
2017-05-30 11:25:42 -04:00
|
|
|
<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}}
|
2020-02-11 09:55:16 -05:00
|
|
|
<a href {{action "clearFilter" "subject"}} class="filter">
|
2017-05-30 11:25:42 -04:00
|
|
|
<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}}
|
2020-02-03 08:22:14 -05:00
|
|
|
{{i18n "admin.logs.staff_actions.filter"}}
|
|
|
|
{{combo-box
|
|
|
|
content=userHistoryActions
|
|
|
|
value=filterActionId
|
|
|
|
none="admin.logs.staff_actions.all"
|
|
|
|
onChange=(action "filterActionIdChanged")
|
|
|
|
}}
|
2013-08-09 16:58:57 -04:00
|
|
|
{{/if}}
|
2018-10-02 13:46:43 -04:00
|
|
|
|
2019-01-10 05:06:01 -05:00
|
|
|
{{d-button class="btn-default" action=(action "exportStaffActionLogs") label="admin.export_csv.button_text" icon="download"}}
|
2013-10-31 12:17:06 -04:00
|
|
|
</div>
|
2020-04-13 11:17:20 -04:00
|
|
|
|
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}}
|
2019-08-13 13:55:05 -04:00
|
|
|
{{#load-more selector=".staff-logs tr" action=(action "loadMore")}}
|
|
|
|
{{#if model.content}}
|
|
|
|
<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>
|
|
|
|
{{#each model.content as |item|}}
|
|
|
|
<tr class="admin-list-item">
|
|
|
|
<td class="staff-users">
|
|
|
|
<div class="staff-user">
|
|
|
|
{{#if item.acting_user}}
|
|
|
|
{{#link-to "adminUser" item.acting_user}}{{avatar item.acting_user imageSize="tiny"}}{{/link-to}}
|
2020-02-11 09:55:16 -05:00
|
|
|
<a href {{action "filterByStaffUser" item.acting_user}}>{{item.acting_user.username}}</a>
|
2019-08-13 13:55:05 -04:00
|
|
|
{{else}}
|
2020-03-07 06:58:48 -05:00
|
|
|
<span class="deleted-user" title={{i18n "admin.user.deleted"}}>
|
2019-08-13 13:55:05 -04:00
|
|
|
{{d-icon "far-trash-alt"}}
|
|
|
|
</span>
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
<td class="col value action">
|
2020-02-11 09:55:16 -05:00
|
|
|
<a href {{action "filterByAction" item}}>{{item.actionName}}</a>
|
2019-08-13 13:55:05 -04:00
|
|
|
</td>
|
|
|
|
<td class="col value subject">
|
|
|
|
<div class="subject">
|
|
|
|
{{#if item.target_user}}
|
|
|
|
{{#link-to "adminUser" item.target_user}}{{avatar item.target_user imageSize="tiny"}}{{/link-to}}
|
2020-02-11 09:55:16 -05:00
|
|
|
<a href {{action "filterByTargetUser" item.target_user}}>{{item.target_user.username}}</a>
|
2019-08-13 13:55:05 -04:00
|
|
|
{{/if}}
|
|
|
|
{{#if item.subject}}
|
2020-02-11 09:55:16 -05:00
|
|
|
<a href {{action "filterBySubject" item.subject}} title={{item.subject}}>{{item.subject}}</a>
|
2019-08-13 13:55:05 -04:00
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
<td class="col value created-at">{{age-with-tooltip item.created_at}}</td>
|
|
|
|
<td class="col value details">
|
2020-02-14 14:23:31 -05:00
|
|
|
<div>
|
2020-03-11 04:23:10 -04:00
|
|
|
{{html-safe item.formattedDetails}}
|
2020-02-14 14:23:31 -05:00
|
|
|
{{#if item.useCustomModalForDetails}}
|
|
|
|
<a href {{action "showCustomDetailsModal" item}}>{{d-icon "info-circle"}} {{i18n "admin.logs.staff_actions.show"}}</a>
|
|
|
|
{{/if}}
|
|
|
|
{{#if item.useModalForDetails}}
|
|
|
|
<a href {{action "showDetailsModal" item}}>{{d-icon "info-circle"}} {{i18n "admin.logs.staff_actions.show"}}</a>
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
2019-08-13 13:55:05 -04:00
|
|
|
</td>
|
|
|
|
<td class="col value context">{{item.context}}</td>
|
|
|
|
</tr>
|
|
|
|
{{/each}}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
{{else if model.loadingMore}}
|
|
|
|
{{conditional-loading-spinner condition=model.loadingMore}}
|
|
|
|
{{else}}
|
|
|
|
{{i18n "search.no_results"}}
|
|
|
|
{{/if}}
|
|
|
|
{{/load-more}}
|
2018-02-13 15:58:32 -05:00
|
|
|
{{/staff-actions}}
|