闭社主体 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.

45 lines
2.1 KiB

  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.acct}"
  26. - if status.spoiler_text?
  27. %div{ dir: rtl_status?(status) ? 'rtl' : 'ltr' }
  28. %p
  29. = Formatter.instance.format_spoiler(status)
  30. %div{ dir: rtl_status?(status) ? 'rtl' : 'ltr' }
  31. = Formatter.instance.format(status)
  32. - if status.media_attachments.size > 0
  33. %p
  34. - status.media_attachments.each do |a|
  35. - if status.local?
  36. = link_to medium_url(a), medium_url(a)
  37. - else
  38. = link_to a.remote_url, a.remote_url
  39. %p.status-footer
  40. = link_to l(status.created_at), web_url("statuses/#{status.id}")