_status.html.haml 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. - i ||= 0
  2. - highlighted ||= false
  3. %table.email-table{ cellspacing: 0, cellpadding: 0, dir: 'ltr' }
  4. %tbody
  5. %tr
  6. %td.email-body
  7. .email-container
  8. %table.content-section{ cellspacing: 0, cellpadding: 0 }
  9. %tbody
  10. %tr
  11. %td.content-cell{ class: i.zero? ? 'content-start' : nil }
  12. .email-row
  13. .col-6
  14. %table.column{ cellspacing: 0, cellpadding: 0 }
  15. %tbody
  16. %tr
  17. %td.column-cell.padded.status{ class: highlighted ? 'status--highlighted' : '' }
  18. %table.status-header{ cellspacing: 0, cellpadding: 0 }
  19. %tbody
  20. %tr
  21. %td{ align: 'left', width: 48 }
  22. = image_tag full_asset_url(status.account.avatar.url), alt: ''
  23. %td{ align: 'left' }
  24. %bdi= display_name(status.account)
  25. @#{status.account.pretty_acct}
  26. - if status.spoiler_text?
  27. .auto-dir
  28. %p
  29. = status.spoiler_text
  30. .auto-dir
  31. = status_content_format(status)
  32. - if status.ordered_media_attachments.size.positive?
  33. %p
  34. - status.ordered_media_attachments.each do |a|
  35. - if status.local?
  36. = link_to full_asset_url(a.file.url(:original)), full_asset_url(a.file.url(:original))
  37. - else
  38. = link_to a.remote_url, a.remote_url
  39. %p.status-footer
  40. = link_to l(status.created_at.in_time_zone(time_zone.presence), format: :with_time_zone), web_url("@#{status.account.pretty_acct}/#{status.id}")