= page-title 'action_list.title'
  = pagination-progress content=model class='between-brackets'
  i.pointable.refresh.icon{action 'reload' model}
  .ui.top-right.pagination.menu= page-numbers content=model showFL=true
table.ui.attached.stiped.sortable.table
  thead
    tr
      = sortable-table-header filters=filters key='client_identifier' model=model
        = t 'attributes.action_event.client_identifier'
      th= t 'attributes.action_event.identifier'
      th= t 'attributes.action_event.event_key'
      th= t 'attributes.action_event.event_value'
      = sortable-table-header filters=filters key='event_timestamp' model=model defaultDirection='desc'
        = t 'attributes.action_event.event_timestamp'
      th= t 'models.user'
    table-filters content=model filters=filters as |filter|
      = filter.input key='client_identifier_cont'
      = filter.input key='identifier_eq'
      = filter.dropdown-select key='event_key_eq' options=globals.action_event.event_keys
      = filter.input key='event_value_eq'
      = filter.date-range key='event_timestamp' expandingTime=true weekSelector=true
      = filter.dropdown-select key='source_id_eq' options=users labelPath='nickname'
  tbody
    if model.loading
      tr
        td colspan=99
          .ui.active.inline.centered.loader
    else
      each model as |record|
        tr
          td= record.client_identifier
          td= record.identifier
          td= record.event_key
          td= record.event_value
          td= format-date record.event_timestamp format=globals.time_formatting
          td= record.source
