scinote-web/app/views/users/mailer/notification.html.erb

24 lines
659 B
Plaintext
Raw Normal View History

2016-10-05 16:52:27 +08:00
<p>Hello <%= @user.name %>!</p>
<p><%= I18n.t("notifications.email_title") %></p>
2016-10-05 16:52:27 +08:00
<p>Type: <%= I18n.t("notifications.types.#{@notification.type_of}") %></p>
<p>
<% if @notification.system_message? %>
<% # We assume the system notification is clean %>
<%= @notification.title.html_safe %>
<% else %>
<%= sanitize_input(prepend_server_url_to_links(@notification.title)) %>
<% end %>
</p>
2016-10-05 16:52:27 +08:00
<p>
<% if @notification.system_message? %>
<% # We assume the system notification is clean %>
<%= @notification.message.html_safe %>
<% else %>
<%= sanitize_input(prepend_server_url_to_links(@notification.message)) %>
<% end %>
</p>