闭社主体 forked from https://github.com/tootsuite/mastodon
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
1.6 KiB

  1. - i ||= 0
  2. %table.email-table{ cellspacing: 0, cellpadding: 0, dir: 'ltr' }
  3. %tbody
  4. %tr
  5. %td.email-body
  6. .email-container
  7. %table.content-section{ cellspacing: 0, cellpadding: 0 }
  8. %tbody
  9. %tr
  10. %td.content-cell{ class: i.zero? ? 'content-start' : nil }
  11. .email-row
  12. .col-6
  13. %table.column{ cellspacing: 0, cellpadding: 0 }
  14. %tbody
  15. %tr
  16. %td.column-cell.padded.status
  17. %table.status-header{ cellspacing: 0, cellpadding: 0 }
  18. %tbody
  19. %tr
  20. %td{ align: 'left', width: 48 }
  21. = image_tag full_asset_url(status.account.avatar.url), alt:''
  22. %td{ align: 'left' }
  23. %bdi= display_name(status.account)
  24. = "@#{status.account.acct}"
  25. - if status.spoiler_text?
  26. %div{ dir: rtl_status?(status) ? 'rtl' : 'ltr' }
  27. %p
  28. = Formatter.instance.format_spoiler(status)
  29. %div{ dir: rtl_status?(status) ? 'rtl' : 'ltr' }
  30. = Formatter.instance.format(status)
  31. %p.status-footer
  32. = link_to l(status.created_at), web_url("statuses/#{status.id}")