_status.html.haml 1.2 KB

12345678910111213141516171819202122232425262728293031
  1. %table.email-w-full{ cellspacing: 0, cellpadding: 0, border: 0, role: 'presentation' }
  2. %tr
  3. %td.email-status-header-img
  4. = image_tag full_asset_url(status.account.avatar.url), alt: '', width: 48, height: 48
  5. %td.email-status-header-text
  6. %h2.email-status-header-name
  7. = display_name(status.account)
  8. %p.email-status-header-handle
  9. @#{status.account.pretty_acct}
  10. %table.email-w-full{ cellspacing: 0, cellpadding: 0, border: 0, role: 'presentation' }
  11. %tr
  12. %td.email-status-content
  13. .auto-dir
  14. - if status.spoiler_text?
  15. %p.email-status-spoiler
  16. = status.spoiler_text
  17. .email-status-prose
  18. = status_content_format(status)
  19. - if status.ordered_media_attachments.size.positive?
  20. %p.email-status-media
  21. - status.ordered_media_attachments.each do |a|
  22. - if status.local?
  23. = link_to full_asset_url(a.file.url(:original)), full_asset_url(a.file.url(:original))
  24. - else
  25. = link_to a.remote_url, a.remote_url
  26. %p.email-status-footer
  27. = link_to l(status.created_at.in_time_zone(time_zone.presence), format: :with_time_zone), web_url("@#{status.account.pretty_acct}/#{status.id}")