mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-10-30 18:58:39 -04:00
* Add HTML email layout with Growstuff branding and footer Co-authored-by: CloCkWeRX <365751+CloCkWeRX@users.noreply.github.com> * Add HTML email layout with Growstuff branding, call-to-action buttons, and footer Co-authored-by: CloCkWeRX <365751+CloCkWeRX@users.noreply.github.com> * Add previewer * Update spec --------- Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
28 lines
746 B
Plaintext
28 lines
746 B
Plaintext
%p
|
|
Hello #{@notification.recipient.login_name},
|
|
|
|
%p
|
|
You have received a message from
|
|
= link_to @notification.sender.login_name, member_url(@notification.sender)
|
|
on #{ENV['GROWSTUFF_SITE_NAME']} at #{@notification.created_at}
|
|
|
|
- if @notification.post
|
|
in response to
|
|
= link_to @notification.post.subject, post_url(@notification.post)
|
|
\.
|
|
|
|
%blockquote
|
|
:markdown
|
|
#{strip_tags markdownify(@notification.body)}
|
|
|
|
%p
|
|
= link_to "Reply to this message", @reply_link, class: 'btn'
|
|
|
|
%p
|
|
= link_to "View this message in your inbox", notification_url(@notification)
|
|
%br/
|
|
= link_to "Unsubscribe from direct message notifications", unsubscribe_member_url(@signed_message)
|
|
from these notifications
|
|
|
|
= render partial: 'signature'
|