{{#if filtersExists}}
{{i18n 'admin.logs.staff_actions.clear_filters'}} {{#if actionFilter}} {{i18n 'admin.logs.action'}}: {{actionFilter}} {{d-icon "times-circle"}} {{/if}} {{#if filters.acting_user}} {{i18n 'admin.logs.staff_actions.staff_user'}}: {{filters.acting_user}} {{d-icon "times-circle"}} {{/if}} {{#if filters.target_user}} {{i18n 'admin.logs.staff_actions.target_user'}}: {{filters.target_user}} {{d-icon "times-circle"}} {{/if}} {{#if filters.subject}} {{i18n 'admin.logs.staff_actions.subject'}}: {{filters.subject}} {{d-icon "times-circle"}} {{/if}}
{{else}} {{i18n "admin.logs.staff_actions.filter"}} {{combo-box content=userHistoryActions value=filterActionId none="admin.logs.staff_actions.all" onSelect=(action "filterActionIdChanged")}} {{/if}} {{d-button class="btn-default" action=(action "exportStaffActionLogs") label="admin.export_csv.button_text" icon="download"}}
{{#staff-actions}} {{#load-more selector=".staff-logs tr" action=(action "loadMore")}} {{#if model.content}} {{#each model.content as |item|}} {{/each}}
{{i18n 'admin.logs.staff_actions.staff_user'}} {{i18n 'admin.logs.action'}} {{i18n 'admin.logs.staff_actions.subject'}} {{i18n 'admin.logs.staff_actions.when'}} {{i18n 'admin.logs.staff_actions.details'}} {{i18n 'admin.logs.staff_actions.context'}}
{{#if item.acting_user}} {{#link-to 'adminUser' item.acting_user}}{{avatar item.acting_user imageSize="tiny"}}{{/link-to}} {{item.acting_user.username}} {{else}} {{d-icon "far-trash-alt"}} {{/if}}
{{item.actionName}}
{{#if item.target_user}} {{#link-to 'adminUser' item.target_user}}{{avatar item.target_user imageSize="tiny"}}{{/link-to}} {{item.target_user.username}} {{/if}} {{#if item.subject}} {{item.subject}} {{/if}}
{{age-with-tooltip item.created_at}} {{{item.formattedDetails}}} {{#if item.useCustomModalForDetails}} {{d-icon "info-circle"}} {{i18n 'admin.logs.staff_actions.show'}} {{/if}} {{#if item.useModalForDetails}} {{d-icon "info-circle"}} {{i18n 'admin.logs.staff_actions.show'}} {{/if}} {{item.context}}
{{else if model.loadingMore}} {{conditional-loading-spinner condition=model.loadingMore}} {{else}} {{i18n 'search.no_results'}} {{/if}} {{/load-more}} {{/staff-actions}}