2018-01-17 06:20:15 +11:00
|
|
|
- i ||= 0
|
2019-08-24 06:37:23 +10:00
|
|
|
- highlighted ||= false
|
2018-01-17 06:20:15 +11:00
|
|
|
|
2018-01-29 10:22:20 +11:00
|
|
|
%table.email-table{ cellspacing: 0, cellpadding: 0, dir: 'ltr' }
|
2018-01-17 06:20:15 +11:00
|
|
|
%tbody
|
|
|
|
%tr
|
|
|
|
%td.email-body
|
|
|
|
.email-container
|
|
|
|
%table.content-section{ cellspacing: 0, cellpadding: 0 }
|
|
|
|
%tbody
|
|
|
|
%tr
|
|
|
|
%td.content-cell{ class: i.zero? ? 'content-start' : nil }
|
|
|
|
.email-row
|
|
|
|
.col-6
|
|
|
|
%table.column{ cellspacing: 0, cellpadding: 0 }
|
|
|
|
%tbody
|
|
|
|
%tr
|
2019-08-24 06:37:23 +10:00
|
|
|
%td.column-cell.padded.status{ class: highlighted ? 'status--highlighted' : '' }
|
2018-01-17 06:20:15 +11:00
|
|
|
%table.status-header{ cellspacing: 0, cellpadding: 0 }
|
|
|
|
%tbody
|
|
|
|
%tr
|
|
|
|
%td{ align: 'left', width: 48 }
|
2023-03-16 06:07:43 +11:00
|
|
|
= image_tag full_asset_url(status.account.avatar.url), alt: ''
|
2018-01-17 06:20:15 +11:00
|
|
|
%td{ align: 'left' }
|
|
|
|
%bdi= display_name(status.account)
|
2022-03-22 20:07:11 +11:00
|
|
|
= "@#{status.account.pretty_acct}"
|
2018-01-17 06:20:15 +11:00
|
|
|
|
2018-03-20 06:12:20 +11:00
|
|
|
- if status.spoiler_text?
|
2023-03-15 14:15:36 +11:00
|
|
|
.auto-dir
|
2018-03-20 06:12:20 +11:00
|
|
|
%p
|
2022-03-26 12:53:34 +11:00
|
|
|
= status.spoiler_text
|
2018-03-20 06:12:20 +11:00
|
|
|
|
2023-03-15 14:15:36 +11:00
|
|
|
.auto-dir
|
2022-03-26 12:53:34 +11:00
|
|
|
= status_content_format(status)
|
2018-01-17 06:20:15 +11:00
|
|
|
|
2023-07-20 23:13:06 +10:00
|
|
|
- if status.ordered_media_attachments.size.positive?
|
2019-08-24 06:37:23 +10:00
|
|
|
%p
|
2022-03-09 19:06:17 +11:00
|
|
|
- status.ordered_media_attachments.each do |a|
|
2019-09-05 14:14:30 +10:00
|
|
|
- if status.local?
|
2021-09-14 02:59:37 +10:00
|
|
|
= link_to full_asset_url(a.file.url(:original)), full_asset_url(a.file.url(:original))
|
2019-09-05 14:14:30 +10:00
|
|
|
- else
|
|
|
|
= link_to a.remote_url, a.remote_url
|
2019-08-24 06:37:23 +10:00
|
|
|
|
2018-01-17 06:20:15 +11:00
|
|
|
%p.status-footer
|
2023-09-07 01:25:39 +10:00
|
|
|
= link_to l(status.created_at.in_time_zone(time_zone.presence), format: :with_time_zone), web_url("@#{status.account.pretty_acct}/#{status.id}")
|