discourse/app/assets/javascripts/admin/templates/logs/staff_action_logs.hbs

59 lines
2.3 KiB
Handlebars
Raw Normal View History

2013-08-09 16:58:57 -04:00
<div class="staff-action-logs-controls">
<a {{action "clearAllFilters"}} class="clear-filters filter {{unless filtersExists 'invisible'}}">
<span class="label">{{i18n 'admin.logs.staff_actions.clear_filters'}}</span>
2013-08-09 16:58:57 -04:00
</a>
{{#if actionFilter}}
<a {{action "clearFilter" "actionFilter"}} class="filter">
<span class="label">{{i18n 'admin.logs.action'}}</span>: {{actionFilter}}
{{fa-icon "times-circle"}}
2013-08-09 16:58:57 -04:00
</a>
{{/if}}
2013-09-10 21:21:16 -04:00
{{#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}}
{{fa-icon "times-circle"}}
2013-08-09 16:58:57 -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}}
{{fa-icon "times-circle"}}
2013-08-09 16:58:57 -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}}
{{fa-icon "times-circle"}}
</a>
{{/if}}
2013-08-09 16:58:57 -04:00
</div>
2014-12-06 23:15:22 -05:00
<div class="pull-right">
{{d-button action="exportStaffActionLogs" label="admin.export_csv.button_text" icon="download"}}
2014-12-06 23:15:22 -05:00
</div>
<br>
2014-12-06 23:15:22 -05:00
<div class="staff-action-logs-instructions {{unless 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>
2015-04-28 17:05:06 -04:00
{{#conditional-loading-spinner condition=loading}}
{{#if model.length}}
{{staff-action-logs-list content=model}}
{{else}}
{{i18n 'search.no_results'}}
{{/if}}
2015-04-28 17:05:06 -04:00
{{/conditional-loading-spinner}}
</div>