Files
growstuff/app/views/notifier_mailer/notify.html.haml
Daniel O'Connor 49284eb169 Fix haml preview (#3610)
* HAML

* rewrite

* Fix specs - but likely still wrong

* Return temple

* Trailing line

* Fix specs

* This was rearranged, apparently.

* Fix tests

* Retain escaping

* Fix specs

* Rubocop

* Attempt to fix rendering

* Fix output

* Move away from filter

* Move away from filter

* Fix spec

* Fix specs

* Fix structure to avoid nested paragraph tags
2024-02-04 15:08:18 +10:30

27 lines
735 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
%br/
= 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'