2018-01-17 04:20:15 +09:00
|
|
|
- i ||= 0
|
2019-08-24 05:37:23 +09:00
|
|
|
- highlighted ||= false
|
2018-01-17 04:20:15 +09:00
|
|
|
|
2018-01-29 08:22:20 +09:00
|
|
|
%table.email-table{ cellspacing: 0, cellpadding: 0, dir: 'ltr' }
|
2018-01-17 04:20:15 +09: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 05:37:23 +09:00
|
|
|
%td.column-cell.padded.status{ class: highlighted ? 'status--highlighted' : '' }
|
2018-01-17 04:20:15 +09:00
|
|
|
%table.status-header{ cellspacing: 0, cellpadding: 0 }
|
|
|
|
%tbody
|
|
|
|
%tr
|
|
|
|
%td{ align: 'left', width: 48 }
|
2018-01-21 21:20:00 +09:00
|
|
|
= image_tag full_asset_url(status.account.avatar.url), alt:''
|
2018-01-17 04:20:15 +09:00
|
|
|
%td{ align: 'left' }
|
|
|
|
%bdi= display_name(status.account)
|
|
|
|
= "@#{status.account.acct}"
|
|
|
|
|
2018-03-20 04:12:20 +09:00
|
|
|
- if status.spoiler_text?
|
|
|
|
%div{ dir: rtl_status?(status) ? 'rtl' : 'ltr' }
|
|
|
|
%p
|
|
|
|
= Formatter.instance.format_spoiler(status)
|
|
|
|
|
2018-01-29 08:22:20 +09:00
|
|
|
%div{ dir: rtl_status?(status) ? 'rtl' : 'ltr' }
|
|
|
|
= Formatter.instance.format(status)
|
2018-01-17 04:20:15 +09:00
|
|
|
|
2019-08-24 05:37:23 +09:00
|
|
|
- if status.media_attachments.size > 0
|
|
|
|
%p
|
|
|
|
- status.media_attachments.each do |a|
|
|
|
|
= link_to medium_url(a), medium_url(a)
|
|
|
|
|
2018-01-17 04:20:15 +09:00
|
|
|
%p.status-footer
|
|
|
|
= link_to l(status.created_at), web_url("statuses/#{status.id}")
|