_account_warning.html.haml 1.2 KB

12345678910111213141516171819202122232425
  1. = link_to disputes_strike_path(account_warning), class: 'log-entry' do
  2. .log-entry__header
  3. .log-entry__avatar
  4. .indicator-icon{ class: account_warning.overruled? ? 'success' : 'failure' }
  5. = fa_icon 'warning'
  6. .log-entry__content
  7. .log-entry__title
  8. = t(account_warning.action, scope: 'admin.strikes.actions', name: content_tag(:span, account_warning.account ? account_warning.account.username : I18n.t('admin.action_logs.deleted_account'), class: 'username'), target: content_tag(:span, account_warning.target_account.pretty_acct, class: 'target')).html_safe
  9. .log-entry__timestamp
  10. %time.formatted{ datetime: account_warning.created_at.iso8601 }
  11. = l(account_warning.created_at)
  12. - if account_warning.report_id.present?
  13. ·
  14. = t('admin.reports.report', id: account_warning.report_id)
  15. - if account_warning.overruled?
  16. ·
  17. %span.positive-hint= t('admin.strikes.appeal_approved')
  18. - elsif account_warning.appeal&.pending?
  19. ·
  20. %span.warning-hint= t('admin.strikes.appeal_pending')
  21. - elsif account_warning.appeal&.rejected?
  22. ·
  23. %span.negative-hint= t('admin.strikes.appeal_rejected')