Add an HTML version of the message notification email
This commit is contained in:
parent
52452d95b4
commit
ce4a6eefa7
2 changed files with 13 additions and 0 deletions
|
@ -2,6 +2,7 @@ class Notifier < ActionMailer::Base
|
|||
default :from => EMAIL_FROM,
|
||||
:return_path => EMAIL_RETURN_PATH,
|
||||
:auto_submitted => "auto-generated"
|
||||
helper :application
|
||||
|
||||
def signup_confirm(user, token)
|
||||
@locale = user.preferred_language_from(I18n.available_locales)
|
||||
|
|
12
app/views/notifier/message_notification.html.erb
Normal file
12
app/views/notifier/message_notification.html.erb
Normal file
|
@ -0,0 +1,12 @@
|
|||
<p><%= t'notifier.message_notification.hi', :to_user => @to_user %></p>
|
||||
|
||||
<p><%= raw t'notifier.message_notification.header', :from_user => link_to(@from_user, :host => SERVER_URL, :controller => :user, :action => :view, :display_name => @from_user), :subject => @title %></p>
|
||||
|
||||
==
|
||||
<%= htmlize @text %>
|
||||
==
|
||||
|
||||
<p>
|
||||
<%= raw t'notifier.message_notification.footer1', :readurl => link_to(@readurl, @readurl) %>
|
||||
<%= raw t'notifier.message_notification.footer2', :replyurl => link_to(@replyurl, @replyurl) %>
|
||||
</p>
|
Loading…
Add table
Reference in a new issue