Files
growstuff/app/views/notifier/notify.html.haml
Skud 11f979313a Added reply link to notification email.
Note: this breaks DRY but we couldn't figure out how to put it in a
helper and make it useable by both the controller and the mailer.
Suggestions/help much appreciated!
2013-04-29 18:55:13 +10:00

27 lines
735 B
Plaintext

- site_name = Growstuff::Application.config.site_name
%p Hello #{@notification.recipient.login_name},
%p
You have received a message from
= link_to @notification.sender.login_name, member_url(@notification.sender)
on #{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 @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 "Turn off these notifications", edit_member_registration_url
%p
The #{site_name} team.
%br/
=link_to root_url, root_url