mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-12 00:31:48 -05:00
58 lines
2.4 KiB
Handlebars
58 lines
2.4 KiB
Handlebars
<div class="staff-action-logs-controls">
|
|
<a {{action "clearAllFilters"}} {{bind-attr class=":clear-filters :filter filtersExists::invisible"}}>
|
|
<span class="label">{{i18n 'admin.logs.staff_actions.clear_filters'}}</span>
|
|
</a>
|
|
{{#if actionFilter}}
|
|
<a {{action "clearFilter" "action_name"}} class="filter">
|
|
<span class="label">{{i18n 'admin.logs.action'}}</span>: {{actionFilter}}
|
|
<i class="fa fa-times-circle"></i>
|
|
</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}}
|
|
<i class="fa fa-times-circle"></i>
|
|
</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}}
|
|
<i class="fa fa-times-circle"></i>
|
|
</a>
|
|
{{/if}}
|
|
{{#if filters.subject}}
|
|
<a {{action "clearFilter" "subject"}} class="filter">
|
|
<span class="label">{{i18n 'admin.logs.staff_actions.subject'}}</span>: {{filters.subject}}
|
|
<i class="fa fa-times-circle"></i>
|
|
</a>
|
|
{{/if}}
|
|
</div>
|
|
|
|
<div class="pull-right">
|
|
<button class="btn" {{action "exportStaffActionLogs"}} title="{{i18n 'admin.export_csv.button_title.staff_action'}}">{{fa-icon "download"}}{{i18n 'admin.export_csv.button_text'}}</button>
|
|
</div>
|
|
</br>
|
|
|
|
<div class="staff-action-logs-instructions" {{bind-attr class=":staff-action-logs-instructions showInstructions::invisible"}}>
|
|
{{i18n 'admin.logs.staff_actions.instructions'}}
|
|
</div>
|
|
|
|
<div class='table staff-actions'>
|
|
<div class="heading-container">
|
|
<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>
|
|
<div class="clearfix"></div>
|
|
</div>
|
|
|
|
{{#loading-spinner condition=loading}}
|
|
{{#if model.length}}
|
|
{{view "staff-action-logs-list" content=controller}}
|
|
{{else}}
|
|
{{i18n 'search.no_results'}}
|
|
{{/if}}
|
|
{{/loading-spinner}}
|
|
</div>
|