_account_warning.html.haml 963 B

1234567891011121314151617181920
  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('disputes.strikes.title', action: t(account_warning.action, scope: 'disputes.strikes.title_actions'), date: l(account_warning.created_at.to_date))
  9. .log-entry__timestamp
  10. %time.formatted{ datetime: account_warning.created_at.iso8601 }= l(account_warning.created_at)
  11. - if account_warning.overruled?
  12. ·
  13. %span.positive-hint= t('disputes.strikes.your_appeal_approved')
  14. - elsif account_warning.appeal&.pending?
  15. ·
  16. %span.warning-hint= t('disputes.strikes.your_appeal_pending')
  17. - elsif account_warning.appeal&.rejected?
  18. ·
  19. %span.negative-hint= t('disputes.strikes.your_appeal_rejected')