2013-08-10 04:58:57 +08:00
|
|
|
<div class="staff-action-logs-controls">
|
2016-05-07 04:04:38 +08:00
|
|
|
<a {{action "clearAllFilters"}} class="clear-filters filter {{unless filtersExists 'invisible'}}">
|
2014-12-09 05:35:49 +08:00
|
|
|
<span class="label">{{i18n 'admin.logs.staff_actions.clear_filters'}}</span>
|
2013-08-10 04:58:57 +08:00
|
|
|
</a>
|
|
|
|
{{#if actionFilter}}
|
2015-02-06 03:34:57 +08:00
|
|
|
<a {{action "clearFilter" "actionFilter"}} class="filter">
|
2014-12-09 05:35:49 +08:00
|
|
|
<span class="label">{{i18n 'admin.logs.action'}}</span>: {{actionFilter}}
|
2015-02-06 03:34:57 +08:00
|
|
|
{{fa-icon "times-circle"}}
|
2013-08-10 04:58:57 +08:00
|
|
|
</a>
|
|
|
|
{{/if}}
|
2013-09-11 09:21:16 +08:00
|
|
|
{{#if filters.acting_user}}
|
2014-10-01 00:36:23 +08:00
|
|
|
<a {{action "clearFilter" "acting_user"}} class="filter">
|
2014-12-09 05:35:49 +08:00
|
|
|
<span class="label">{{i18n 'admin.logs.staff_actions.staff_user'}}</span>: {{filters.acting_user}}
|
2015-02-06 03:34:57 +08:00
|
|
|
{{fa-icon "times-circle"}}
|
2013-08-10 04:58:57 +08:00
|
|
|
</a>
|
|
|
|
{{/if}}
|
|
|
|
{{#if filters.target_user}}
|
2014-10-01 00:36:23 +08:00
|
|
|
<a {{action "clearFilter" "target_user"}} class="filter">
|
2014-12-09 05:35:49 +08:00
|
|
|
<span class="label">{{i18n 'admin.logs.staff_actions.target_user'}}</span>: {{filters.target_user}}
|
2015-02-06 03:34:57 +08:00
|
|
|
{{fa-icon "times-circle"}}
|
2013-08-10 04:58:57 +08:00
|
|
|
</a>
|
|
|
|
{{/if}}
|
2013-08-21 01:50:51 +08:00
|
|
|
{{#if filters.subject}}
|
2014-10-01 00:36:23 +08:00
|
|
|
<a {{action "clearFilter" "subject"}} class="filter">
|
2014-12-09 05:35:49 +08:00
|
|
|
<span class="label">{{i18n 'admin.logs.staff_actions.subject'}}</span>: {{filters.subject}}
|
2015-02-06 03:34:57 +08:00
|
|
|
{{fa-icon "times-circle"}}
|
2013-08-21 01:50:51 +08:00
|
|
|
</a>
|
|
|
|
{{/if}}
|
2013-08-10 04:58:57 +08:00
|
|
|
</div>
|
2013-08-09 22:06:02 +08:00
|
|
|
|
2014-12-07 12:15:22 +08:00
|
|
|
<div class="pull-right">
|
2015-02-06 03:34:57 +08:00
|
|
|
{{d-button action="exportStaffActionLogs" label="admin.export_csv.button_text" icon="download"}}
|
2014-12-07 12:15:22 +08:00
|
|
|
</div>
|
2015-04-03 18:40:17 +08:00
|
|
|
<br>
|
2014-12-07 12:15:22 +08:00
|
|
|
|
2015-05-12 00:19:53 +08:00
|
|
|
<div class="staff-action-logs-instructions {{unless showInstructions 'invisible'}}">
|
2014-12-09 05:35:49 +08:00
|
|
|
{{i18n 'admin.logs.staff_actions.instructions'}}
|
2013-11-01 00:17:06 +08:00
|
|
|
</div>
|
|
|
|
|
2013-08-09 22:06:02 +08:00
|
|
|
<div class='table staff-actions'>
|
|
|
|
<div class="heading-container">
|
2014-12-09 05:35:49 +08:00
|
|
|
<div class="col heading first staff_user">{{i18n 'admin.logs.staff_actions.staff_user'}}</div>
|
|
|
|
<div class="col heading action">{{i18n 'admin.logs.action'}}</div>
|
|
|
|
<div class="col heading subject">{{i18n 'admin.logs.staff_actions.subject'}}</div>
|
|
|
|
<div class="col heading created_at">{{i18n 'admin.logs.staff_actions.when'}}</div>
|
|
|
|
<div class="col heading details">{{i18n 'admin.logs.staff_actions.details'}}</div>
|
|
|
|
<div class="col heading context">{{i18n 'admin.logs.staff_actions.context'}}</div>
|
2013-08-09 22:06:02 +08:00
|
|
|
<div class="clearfix"></div>
|
|
|
|
</div>
|
|
|
|
|
2015-04-29 05:05:06 +08:00
|
|
|
{{#conditional-loading-spinner condition=loading}}
|
2013-08-09 22:06:02 +08:00
|
|
|
{{#if model.length}}
|
2016-05-10 03:15:39 +08:00
|
|
|
{{staff-action-logs-list content=model}}
|
2013-08-09 22:06:02 +08:00
|
|
|
{{else}}
|
2014-12-09 05:35:49 +08:00
|
|
|
{{i18n 'search.no_results'}}
|
2013-08-09 22:06:02 +08:00
|
|
|
{{/if}}
|
2015-04-29 05:05:06 +08:00
|
|
|
{{/conditional-loading-spinner}}
|
2013-08-09 22:06:02 +08:00
|
|
|
</div>
|