_appeal.html.haml 1.1 KB

123456789101112131415161718192021
  1. = link_to disputes_strike_path(appeal.strike), class: ['log-entry', appeal.approved? && 'log-entry--inactive'] do
  2. .log-entry__header
  3. .log-entry__avatar
  4. = image_tag appeal.account.avatar.url(:original), alt: '', width: 40, height: 40, class: 'avatar'
  5. .log-entry__content
  6. .log-entry__title
  7. = t(appeal.strike.action, scope: 'admin.strikes.actions', name: content_tag(:span, appeal.strike.account.username, class: 'username'), target: content_tag(:span, appeal.account.username, class: 'target')).html_safe
  8. .log-entry__timestamp
  9. %time.formatted{ datetime: appeal.strike.created_at.iso8601 }
  10. = l(appeal.strike.created_at)
  11. - if appeal.strike.report_id.present?
  12. ·
  13. = t('admin.reports.title', id: appeal.strike.report_id)
  14. ·
  15. - if appeal.approved?
  16. %span.positive-hint= t('admin.strikes.appeal_approved')
  17. - elsif appeal.rejected?
  18. %span.negative-hint= t('admin.strikes.appeal_rejected')
  19. - else
  20. %span.warning-hint= t('admin.strikes.appeal_pending')