summaryrefslogtreecommitdiffstats
path: root/app/views/notification_mailer/_status.html.haml
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2018-01-16 20:20:15 +0100
committerGitHub <noreply@github.com>2018-01-16 20:20:15 +0100
commit02194838dd64558cd974e68cb0bf800dffd25c91 (patch)
tree7bf51dc8185c9aa2c5fd48c3ddf7f2edc5922c22 /app/views/notification_mailer/_status.html.haml
parent3323b4173edad987a049c6c1c2903781ed5be059 (diff)
HTML e-mails for NotificationMailer (#6263)
* HTML e-mails for NotificationMailer (except digest) * Add HTML template for digest * Fix build
Diffstat (limited to 'app/views/notification_mailer/_status.html.haml')
-rw-r--r--app/views/notification_mailer/_status.html.haml30
1 files changed, 30 insertions, 0 deletions
diff --git a/app/views/notification_mailer/_status.html.haml b/app/views/notification_mailer/_status.html.haml
new file mode 100644
index 00000000000..1e796ed2940
--- /dev/null
+++ b/app/views/notification_mailer/_status.html.haml
@@ -0,0 +1,30 @@
+- i ||= 0
+
+%table.email-table{ cellspacing: 0, cellpadding: 0 }
+ %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
+ %table.status-header{ cellspacing: 0, cellpadding: 0 }
+ %tbody
+ %tr
+ %td{ align: 'left', width: 48 }
+ = image_tag status.account.avatar
+ %td{ align: 'left' }
+ %bdi= display_name(status.account)
+ = "@#{status.account.acct}"
+
+ = Formatter.instance.format(status)
+
+ %p.status-footer
+ = link_to l(status.created_at), web_url("statuses/#{status.id}")