mirror of
https://github.com/lunaisnotaboy/mastodon.git
synced 2024-12-27 07:37:00 +00:00
db57bff11d
* Stop setting a shortcode to newly-created media attachments The WebUI has stopped using the “short media URL” in ages. This isn't used anywhere except for mail notifications. Deprecating it would allow us to eventually get rid of at least a database column and corruption-prone index, as well as a controller. * Fix tests
46 lines
2.1 KiB
Plaintext
46 lines
2.1 KiB
Plaintext
- i ||= 0
|
|
- highlighted ||= false
|
|
|
|
%table.email-table{ cellspacing: 0, cellpadding: 0, dir: 'ltr' }
|
|
%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
|
|
%td.column-cell.padded.status{ class: highlighted ? 'status--highlighted' : '' }
|
|
%table.status-header{ cellspacing: 0, cellpadding: 0 }
|
|
%tbody
|
|
%tr
|
|
%td{ align: 'left', width: 48 }
|
|
= image_tag full_asset_url(status.account.avatar.url), alt:''
|
|
%td{ align: 'left' }
|
|
%bdi= display_name(status.account)
|
|
= "@#{status.account.acct}"
|
|
|
|
- if status.spoiler_text?
|
|
%div.auto-dir
|
|
%p
|
|
= Formatter.instance.format_spoiler(status)
|
|
|
|
%div.auto-dir
|
|
= Formatter.instance.format(status)
|
|
|
|
- if status.media_attachments.size > 0
|
|
%p
|
|
- status.media_attachments.each do |a|
|
|
- if status.local?
|
|
= link_to full_asset_url(a.file.url(:original)), full_asset_url(a.file.url(:original))
|
|
- else
|
|
= link_to a.remote_url, a.remote_url
|
|
|
|
%p.status-footer
|
|
= link_to l(status.created_at), web_url("statuses/#{status.id}")
|