Add mailer helpers to simplify customization
This commit is contained in:
@@ -15,4 +15,40 @@ module MailerHelper
|
|||||||
style: "color: #2895F1; text-decoration:none;"
|
style: "color: #2895F1; text-decoration:none;"
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def mailer_simple_format(text)
|
||||||
|
simple_format(sanitize_and_auto_link(text), { style: css_for_mailer_text }, sanitize: false)
|
||||||
|
end
|
||||||
|
|
||||||
|
def mailer_font_family
|
||||||
|
"font-family: 'Open Sans','Helvetica Neue',arial,sans-serif;"
|
||||||
|
end
|
||||||
|
|
||||||
|
def css_for_mailer_heading
|
||||||
|
mailer_font_family + "font-size: 48px;"
|
||||||
|
end
|
||||||
|
|
||||||
|
def css_for_mailer_subheading
|
||||||
|
mailer_font_family + "font-size: 20px; font-weight: bold; line-height: 24px; margin-bottom: 2px;"
|
||||||
|
end
|
||||||
|
|
||||||
|
def css_for_mailer_text
|
||||||
|
mailer_font_family + "font-size: 14px;font-weight: normal;line-height: 24px;"
|
||||||
|
end
|
||||||
|
|
||||||
|
def css_for_mailer_button
|
||||||
|
mailer_font_family + "background: #004a83;border-radius: 6px;color: #fff!important;display: inline-block;font-weight: bold;margin: 0;min-width: 200px;padding: 10px 15px;text-align: center;text-decoration: none;"
|
||||||
|
end
|
||||||
|
|
||||||
|
def css_for_mailer_link
|
||||||
|
"color: #1779ba; text-decoration: underline;"
|
||||||
|
end
|
||||||
|
|
||||||
|
def css_for_mailer_quote
|
||||||
|
"border-left: 2px solid #DEE0E3;font-style: italic;margin-left: 20px;padding:0px 10px;"
|
||||||
|
end
|
||||||
|
|
||||||
|
def css_for_mailer_content
|
||||||
|
"padding-bottom: 20px; padding-left: 10px;"
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
class DeviseMailer < Devise::Mailer
|
class DeviseMailer < Devise::Mailer
|
||||||
helper :application, :settings
|
helper :application, :settings, :mailer
|
||||||
include Devise::Controllers::UrlHelpers
|
include Devise::Controllers::UrlHelpers
|
||||||
default template_path: "devise/mailer"
|
default template_path: "devise/mailer"
|
||||||
|
|
||||||
|
|||||||
@@ -1,18 +1,20 @@
|
|||||||
<td style="padding-bottom: 20px; padding-left: 10px;">
|
<td style="<%= css_for_mailer_content %>">
|
||||||
|
|
||||||
<h1 style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif;">
|
<h1 style="<%= css_for_mailer_heading %>">
|
||||||
<%= t("devise_views.mailer.confirmation_instructions.title") %>
|
<%= t("devise_views.mailer.confirmation_instructions.title") %>
|
||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
<p style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif;font-size: 14px;font-weight: normal;line-height: 24px;">
|
<p style="<%= css_for_mailer_text %>">
|
||||||
<%= t("devise_views.mailer.confirmation_instructions.welcome") %> <strong><%= @email %></strong>
|
<%= t("devise_views.mailer.confirmation_instructions.welcome") %> <strong><%= @email %></strong>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif;font-size: 14px;font-weight: normal;line-height: 24px;">
|
<p style="<%= css_for_mailer_text %>">
|
||||||
<%= t("devise_views.mailer.confirmation_instructions.text") %>
|
<%= t("devise_views.mailer.confirmation_instructions.text") %>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif;font-size: 14px;font-weight: normal;line-height: 24px;">
|
<p style="<%= css_for_mailer_text %>">
|
||||||
<%= link_to t("devise_views.mailer.confirmation_instructions.confirm_link"), confirmation_url(@resource, confirmation_token: @token), style: "color: #2895F1; text-decoration:none;" %>
|
<%= link_to t("devise_views.mailer.confirmation_instructions.confirm_link"),
|
||||||
|
confirmation_url(@resource, confirmation_token: @token),
|
||||||
|
style: css_for_mailer_link %>
|
||||||
</p>
|
</p>
|
||||||
</td>
|
</td>
|
||||||
|
|||||||
@@ -1,22 +1,24 @@
|
|||||||
<td style="padding-bottom: 20px; padding-left: 10px;">
|
<td style="<%= css_for_mailer_content %>">
|
||||||
|
|
||||||
<h1 style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif;">
|
<h1 style="<%= css_for_mailer_heading %>">
|
||||||
<%= t("devise_views.mailer.reset_password_instructions.title") %>
|
<%= t("devise_views.mailer.reset_password_instructions.title") %>
|
||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
<p style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif;font-size: 14px;font-weight: normal;line-height: 24px;">
|
<p style="<%= css_for_mailer_text %>">
|
||||||
<%= t("devise_views.mailer.reset_password_instructions.hello") %> <strong><%= @resource.email %></strong>
|
<%= t("devise_views.mailer.reset_password_instructions.hello") %> <strong><%= @resource.email %></strong>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif;font-size: 14px;font-weight: normal;line-height: 24px;">
|
<p style="<%= css_for_mailer_text %>">
|
||||||
<%= t("devise_views.mailer.reset_password_instructions.text") %>
|
<%= t("devise_views.mailer.reset_password_instructions.text") %>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif;font-size: 14px;font-weight: normal;line-height: 24px;">
|
<p style="<%= css_for_mailer_text %>">
|
||||||
<%= link_to t("devise_views.mailer.reset_password_instructions.change_link"), edit_password_url(@resource, reset_password_token: @token), style: "color: #2895F1; text-decoration:none;" %>
|
<%= link_to t("devise_views.mailer.reset_password_instructions.change_link"),
|
||||||
|
edit_password_url(@resource, reset_password_token: @token),
|
||||||
|
style: css_for_mailer_link %>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif;font-size: 14px;font-weight: normal;line-height: 24px;">
|
<p style="<%= css_for_mailer_text %>">
|
||||||
<%= t("devise_views.mailer.reset_password_instructions.ignore_text") %> <%= t("devise_views.mailer.reset_password_instructions.info_text") %>
|
<%= t("devise_views.mailer.reset_password_instructions.ignore_text") %> <%= t("devise_views.mailer.reset_password_instructions.info_text") %>
|
||||||
</p>
|
</p>
|
||||||
</td>
|
</td>
|
||||||
|
|||||||
@@ -1,22 +1,24 @@
|
|||||||
<td style="padding-bottom: 20px; padding-left: 10px;">
|
<td style="<%= css_for_mailer_content %>">
|
||||||
|
|
||||||
<h1 style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif;">
|
<h1 style="<%= css_for_mailer_heading %>">
|
||||||
<%= t("devise_views.mailer.unlock_instructions.title") %>
|
<%= t("devise_views.mailer.unlock_instructions.title") %>
|
||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
<p style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif;font-size: 14px;font-weight: normal;line-height: 24px;">
|
<p style="<%= css_for_mailer_text %>">
|
||||||
<%= t("devise_views.mailer.unlock_instructions.hello") %> <strong><%= @resource.email %></strong>
|
<%= t("devise_views.mailer.unlock_instructions.hello") %> <strong><%= @resource.email %></strong>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif;font-size: 14px;font-weight: normal;line-height: 24px;">
|
<p style="<%= css_for_mailer_text %>">
|
||||||
<%= t("devise_views.mailer.unlock_instructions.info_text") %>
|
<%= t("devise_views.mailer.unlock_instructions.info_text") %>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif;font-size: 14px;font-weight: normal;line-height: 24px;">
|
<p style="<%= css_for_mailer_text %>">
|
||||||
<%= t("devise_views.mailer.unlock_instructions.instructions_text") %>
|
<%= t("devise_views.mailer.unlock_instructions.instructions_text") %>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif;font-size: 14px;font-weight: normal;line-height: 24px;">
|
<p style="<%= css_for_mailer_text %>">
|
||||||
<%= link_to t("devise_views.mailer.unlock_instructions.unlock_link"), unlock_url(@resource, unlock_token: @token), style: "color: #2895F1; text-decoration:none;" %>
|
<%= link_to t("devise_views.mailer.unlock_instructions.unlock_link"),
|
||||||
|
unlock_url(@resource, unlock_token: @token),
|
||||||
|
style: css_for_mailer_link %>
|
||||||
</p>
|
</p>
|
||||||
</td>
|
</td>
|
||||||
|
|||||||
@@ -1,17 +1,19 @@
|
|||||||
<td style="padding-bottom: 20px; padding-left: 10px;">
|
<td style="<%= css_for_mailer_content %>">
|
||||||
|
|
||||||
<h1 style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif;">
|
<h1 style="<%= css_for_mailer_heading %>">
|
||||||
<%= t("mailers.already_confirmed.subject") %>
|
<%= t("mailers.already_confirmed.subject") %>
|
||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
<p style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif;font-size: 14px;line-height: 24px;">
|
<p style="<%= css_for_mailer_text %>">
|
||||||
<%= t("mailers.already_confirmed.info") %>
|
<%= t("mailers.already_confirmed.info") %>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif;font-size: 14px;line-height: 24px;">
|
<p style="<%= css_for_mailer_text %>">
|
||||||
<%= t("mailers.already_confirmed.new_password") %>
|
<%= t("mailers.already_confirmed.new_password") %>
|
||||||
</p>
|
</p>
|
||||||
<p style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif;font-size: 14px;font-weight: normal;line-height: 24px;">
|
|
||||||
<%= link_to t("devise_views.shared.links.new_password"), new_password_url(@user), style: "color: #2895F1; text-decoration:none;" %>
|
<p style="<%= css_for_mailer_text %>">
|
||||||
|
<%= link_to t("devise_views.shared.links.new_password"),
|
||||||
|
new_password_url(@user), style: css_for_mailer_link %>
|
||||||
</p>
|
</p>
|
||||||
</td>
|
</td>
|
||||||
|
|||||||
@@ -1,30 +1,31 @@
|
|||||||
<td style="padding-bottom: 20px; padding-left: 10px;">
|
<td style="<%= css_for_mailer_content %>">
|
||||||
|
|
||||||
<h1 style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif;">
|
<h1 style="<%= css_for_mailer_heading %>">
|
||||||
<%= t("mailers.budget_investment_created.title") %>
|
<%= t("mailers.budget_investment_created.title") %>
|
||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
<p style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif;font-size: 14px;font-weight: normal;line-height: 24px;">
|
<p style="<%= css_for_mailer_text %>">
|
||||||
<%= sanitize(t("mailers.budget_investment_created.intro",
|
<%= sanitize(t("mailers.budget_investment_created.intro",
|
||||||
author: @investment.author.name)) %>
|
author: @investment.author.name)) %>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif;font-size: 14px;font-weight: normal;line-height: 24px;">
|
<p style="<%= css_for_mailer_text %>">
|
||||||
<%= sanitize(t("mailers.budget_investment_created.text",
|
<%= sanitize(t("mailers.budget_investment_created.text",
|
||||||
investment: @investment.title,
|
investment: @investment.title,
|
||||||
budget: @investment.budget.name)) %>
|
budget: @investment.budget.name)) %>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif;font-size: 14px;font-weight: normal;line-height: 24px;">
|
<p style="<%= css_for_mailer_text %>">
|
||||||
<%= sanitize(t("mailers.budget_investment_created.follow",
|
<%= sanitize(t("mailers.budget_investment_created.follow",
|
||||||
link: link_to(t("mailers.budget_investment_created.follow_link"), budgets_url))) %>
|
link: link_to(t("mailers.budget_investment_created.follow_link"), budgets_url,
|
||||||
|
style: css_for_mailer_link)), attributes: %w[href style]) %>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<table style="width: 100%;">
|
<table style="width: 100%;">
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<td style="padding-bottom: 12px; text-align: center;">
|
<td style="padding-bottom: 12px; text-align: center;">
|
||||||
<%= link_to budget_investment_url(@investment.budget, @investment, anchor: "social-share"), style: "font-family: 'Open Sans','Helvetica Neue',arial,sans-serif; background: #f7f5f2; border-radius: 6px; color: #3d3d66!important; font-weight: bold; margin: 0px; padding: 10px 15px; text-align: center; text-decoration: none; min-width: 160px; display: inline-block;" do %>
|
<%= link_to budget_investment_url(@investment.budget, @investment, anchor: "social-share"), style: css_for_mailer_button do %>
|
||||||
<%= image_tag("icon_mailer_share.png", style: "border: 0; display: inline-block; width: 100%; max-width: 16px", alt: "") %>
|
<%= image_tag("icon_mailer_share.png", style: "border: 0; display: inline-block; width: 100%; max-width: 16px", alt: "") %>
|
||||||
<%= t("mailers.budget_investment_created.share") %>
|
<%= t("mailers.budget_investment_created.share") %>
|
||||||
<% end %>
|
<% end %>
|
||||||
@@ -33,7 +34,7 @@
|
|||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<p style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif;font-size: 14px;font-weight: normal;line-height: 24px;">
|
<p style="<%= css_for_mailer_text %>">
|
||||||
<%= t("mailers.budget_investment_created.sincerely") %>
|
<%= t("mailers.budget_investment_created.sincerely") %>
|
||||||
</p>
|
</p>
|
||||||
</td>
|
</td>
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
<td style="padding-bottom: 20px; padding-left: 10px;">
|
<td style="<%= css_for_mailer_content %>">
|
||||||
|
|
||||||
<p style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif;font-size: 14px;font-weight: normal;line-height: 24px;">
|
<p style="<%= css_for_mailer_text %>">
|
||||||
<%= t("mailers.budget_investment_selected.hi") %>
|
<%= t("mailers.budget_investment_selected.hi") %>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif;font-size: 14px;font-weight: normal;line-height: 24px;">
|
<p style="<%= css_for_mailer_text %>">
|
||||||
<%= t("mailers.budget_investment_selected.share") %>
|
<%= t("mailers.budget_investment_selected.share") %>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
@@ -12,7 +12,7 @@
|
|||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<td style="padding-bottom: 12px; text-align: center;">
|
<td style="padding-bottom: 12px; text-align: center;">
|
||||||
<%= link_to budget_investment_url(@investment.budget, @investment, anchor: "social-share"), style: "font-family: 'Open Sans','Helvetica Neue',arial,sans-serif; background: #f7f5f2; border-radius: 6px; color: #3d3d66 !important; font-weight: bold; margin: 0px; padding: 10px 15px; text-align: center; text-decoration: none; min-width: 160px; display: inline-block;" do %>
|
<%= link_to budget_investment_url(@investment.budget, @investment, anchor: "social-share"), style: css_for_mailer_button do %>
|
||||||
<%= image_tag("icon_mailer_share.png", style: "border: 0; display: inline-block; width: 100%; max-width: 16px", alt: "") %>
|
<%= image_tag("icon_mailer_share.png", style: "border: 0; display: inline-block; width: 100%; max-width: 16px", alt: "") %>
|
||||||
<%= t("mailers.budget_investment_selected.share_button") %>
|
<%= t("mailers.budget_investment_selected.share_button") %>
|
||||||
<% end %>
|
<% end %>
|
||||||
@@ -21,11 +21,11 @@
|
|||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<p style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif;font-size: 14px;font-weight: normal;line-height: 24px;">
|
<p style="<%= css_for_mailer_text %>">
|
||||||
<%= t("mailers.budget_investment_selected.thanks") %>
|
<%= t("mailers.budget_investment_selected.thanks") %>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif;font-size: 14px;font-weight: normal;line-height: 24px;">
|
<p style="<%= css_for_mailer_text %>">
|
||||||
<%= t("mailers.budget_investment_selected.sincerely") %>
|
<%= t("mailers.budget_investment_selected.sincerely") %>
|
||||||
</p>
|
</p>
|
||||||
</td>
|
</td>
|
||||||
|
|||||||
@@ -1,24 +1,25 @@
|
|||||||
<td style="padding-bottom: 20px; padding-left: 10px;">
|
<td style="<%= css_for_mailer_content %>">
|
||||||
|
|
||||||
<p style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif;font-size: 14px;font-weight: normal;line-height: 24px;">
|
<p style="<%= css_for_mailer_text %>">
|
||||||
<%= t("mailers.budget_investment_unfeasible.hi") %>
|
<%= t("mailers.budget_investment_unfeasible.hi") %>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p style="border-left: 2px solid #DEE0E3;font-family: 'Open Sans','Helvetica Neue',arial,sans-serif;font-size: 14px;font-style: italic;font-weight: normal;line-height: 24px;margin-left: 20px;padding: 0px 10px;">
|
<p style="<%= css_for_mailer_text + css_for_mailer_quote %>">
|
||||||
<%= @investment.unfeasibility_explanation %>
|
<%= @investment.unfeasibility_explanation %>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif;font-size: 14px;font-weight: normal;line-height: 24px;">
|
<p style="<%= css_for_mailer_text %>">
|
||||||
<%= sanitize(t("mailers.budget_investment_unfeasible.new",
|
<%= sanitize(t("mailers.budget_investment_unfeasible.new",
|
||||||
url: link_to(t("mailers.budget_investment_unfeasible.new_href"),
|
url: link_to(t("mailers.budget_investment_unfeasible.new_href"),
|
||||||
new_budget_investment_url(@investment.budget), style: "color: #2895F1; text-decoration: underline;"))) %>
|
new_budget_investment_url(@investment.budget), style: css_for_mailer_link)),
|
||||||
|
attributes: %w[href style]) %>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif;font-size: 14px;font-weight: normal;line-height: 24px;">
|
<p style="<%= css_for_mailer_text %>">
|
||||||
<%= t("mailers.budget_investment_unfeasible.sorry") %>
|
<%= t("mailers.budget_investment_unfeasible.sorry") %>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif;font-size: 14px;font-weight: normal;line-height: 24px;">
|
<p style="<%= css_for_mailer_text %>">
|
||||||
<%= t("mailers.budget_investment_unfeasible.sincerely") %>
|
<%= t("mailers.budget_investment_unfeasible.sincerely") %>
|
||||||
</p>
|
</p>
|
||||||
</td>
|
</td>
|
||||||
|
|||||||
@@ -1,14 +1,14 @@
|
|||||||
<td style="padding-bottom: 20px; padding-left: 10px;">
|
<td style="<%= css_for_mailer_content %>">
|
||||||
|
|
||||||
<p style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif;font-size: 14px;font-weight: normal;line-height: 24px;">
|
<p style="<%= css_for_mailer_text %>">
|
||||||
<%= t("mailers.budget_investment_unselected.hi") %>
|
<%= t("mailers.budget_investment_unselected.hi") %>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif;font-size: 14px;font-weight: normal;line-height: 24px;">
|
<p style="<%= css_for_mailer_text %>">
|
||||||
<%= t("mailers.budget_investment_unselected.thanks") %>
|
<%= t("mailers.budget_investment_unselected.thanks") %>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif;font-size: 14px;font-weight: normal;line-height: 24px;">
|
<p style="<%= css_for_mailer_text %>">
|
||||||
<%= t("mailers.budget_investment_unselected.sincerely") %>
|
<%= t("mailers.budget_investment_unselected.sincerely") %>
|
||||||
</p>
|
</p>
|
||||||
</td>
|
</td>
|
||||||
|
|||||||
@@ -1,28 +1,28 @@
|
|||||||
<td style="padding-bottom: 20px; padding-left: 10px;">
|
<td style="<%= css_for_mailer_content %>">
|
||||||
|
|
||||||
<h1 style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif;">
|
<h1 style="<%= css_for_mailer_heading %>">
|
||||||
<%= t("mailers.comment.title") %>
|
<%= t("mailers.comment.title") %>
|
||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
<p style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif;font-size: 14px;font-weight: normal;line-height: 24px;">
|
<p style="<%= css_for_mailer_text %>">
|
||||||
<%= t("mailers.comment.hi") %> <strong><%= @commentable.author.name %></strong>,
|
<%= t("mailers.comment.hi") %> <strong><%= @commentable.author.name %></strong>,
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif;font-size: 14px;font-weight: normal;line-height: 24px;">
|
<p style="<%= css_for_mailer_text %>">
|
||||||
<%= sanitize(t("mailers.comment.new_comment_by", commenter: @comment.author.name)) %>
|
<%= sanitize(t("mailers.comment.new_comment_by", commenter: @comment.author.name)) %>
|
||||||
<%= link_to @commentable.title, commentable_url(@commentable), style: "color: #2895F1; text-decoration:none;" %>
|
<%= link_to @commentable.title, commentable_url(@commentable), style: css_for_mailer_link %>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<div style="border-left: 2px solid #DEE0E3;font-family: 'Open Sans','Helvetica Neue',arial,sans-serif;font-size: 14px;font-style: italic;font-weight: normal;line-height: 24px;margin-left: 20px;padding: 0px 10px;">
|
<div style="<%= css_for_mailer_text + css_for_mailer_quote %>">
|
||||||
<%= simple_format sanitize_and_auto_link(@comment.body), {}, sanitize: false %>
|
<%= mailer_simple_format(@comment.body) %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<p style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif;font-size: 12px;font-weight: normal;line-height: 20px;">
|
<p style="<%= css_for_mailer_text %>">
|
||||||
<%= sanitize(t("mailers.config.unsubscribe_text",
|
<%= sanitize(t("mailers.config.unsubscribe_text",
|
||||||
notifications: link_to(
|
notifications: link_to(
|
||||||
t("mailers.config.notifications_link"),
|
t("mailers.config.notifications_link"),
|
||||||
edit_subscriptions_url(token: @token),
|
edit_subscriptions_url(token: @token),
|
||||||
style: "color: #2895F1; text-decoration: none;"
|
style: css_for_mailer_link
|
||||||
),
|
),
|
||||||
notification: User.human_attribute_name(:email_on_comment)
|
notification: User.human_attribute_name(:email_on_comment)
|
||||||
), attributes: %w[href style]) %>
|
), attributes: %w[href style]) %>
|
||||||
|
|||||||
@@ -1,17 +1,17 @@
|
|||||||
<td style="padding-bottom: 20px; padding-left: 10px;">
|
<td style="<%= css_for_mailer_content %>">
|
||||||
<h1 style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif;">
|
<h1 style="<%= css_for_mailer_heading %>">
|
||||||
<%= @direct_message.title %>
|
<%= @direct_message.title %>
|
||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
<div style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif;font-size: 14px;font-weight: normal;line-height: 24px;">
|
<div style="<%= css_for_mailer_text %>">
|
||||||
<%= simple_format sanitize_and_auto_link(@direct_message.body), {}, sanitize: false %>
|
<%= mailer_simple_format(@direct_message.body) %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<table style="width: 100%; border-top: 1px solid #DEE0E3; margin-top: 60px;">
|
<table style="width: 100%; border-top: 1px solid #DEE0E3; margin-top: 60px;">
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<td style="padding-bottom: 12px; padding-top: 24px; text-align: center;">
|
<td style="padding-bottom: 12px; padding-top: 24px; text-align: center;">
|
||||||
<%= link_to user_url(@direct_message.sender), style: "font-family: 'Open Sans','Helvetica Neue',arial,sans-serif; background: #f7f5f2; border-radius: 6px; color: #3d3d66!important; font-weight: bold; margin: 0px; padding: 10px 15px; text-align: center; text-decoration: none; min-width: 200px; display: inline-block;", target: "_blank" do %>
|
<%= link_to user_url(@direct_message.sender), style: css_for_mailer_button, target: "_blank" do %>
|
||||||
<%= image_tag("icon_mailer_reply.png", style: "border: 0; display: inline-block; width: 100%; max-width: 12px; vertical-align: sub;", alt: "") %>
|
<%= image_tag("icon_mailer_reply.png", style: "border: 0; display: inline-block; width: 100%; max-width: 12px; vertical-align: sub;", alt: "") %>
|
||||||
<%= t("mailers.direct_message_for_receiver.reply",
|
<%= t("mailers.direct_message_for_receiver.reply",
|
||||||
sender: @direct_message.sender.name) %>
|
sender: @direct_message.sender.name) %>
|
||||||
@@ -21,11 +21,11 @@
|
|||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<p style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif;font-size: 12px;font-weight: normal;line-height: 20px;">
|
<p style="<%= css_for_mailer_text %>">
|
||||||
<%= sanitize(t("mailers.direct_message_for_receiver.unsubscribe_text",
|
<%= sanitize(t("mailers.direct_message_for_receiver.unsubscribe_text",
|
||||||
notifications: link_to(t("mailers.config.notifications_link"),
|
notifications: link_to(t("mailers.config.notifications_link"),
|
||||||
edit_subscriptions_url(token: @token),
|
edit_subscriptions_url(token: @token),
|
||||||
style: "color: #2895F1; text-decoration: none;")),
|
style: css_for_mailer_link)),
|
||||||
attributes: %w[href style]) %>
|
attributes: %w[href style]) %>
|
||||||
</p>
|
</p>
|
||||||
</td>
|
</td>
|
||||||
|
|||||||
@@ -1,15 +1,15 @@
|
|||||||
<td style="padding-bottom: 20px; padding-left: 10px;">
|
<td style="<%= css_for_mailer_content %>">
|
||||||
|
|
||||||
<p style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif; font-size: 20px;">
|
<p style="<%= css_for_mailer_text %>">
|
||||||
<%= sanitize(t("mailers.direct_message_for_sender.title",
|
<%= sanitize(t("mailers.direct_message_for_sender.title",
|
||||||
receiver: @direct_message.receiver.name)) %>
|
receiver: @direct_message.receiver.name)) %>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<h2 style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif; font-size: 18px;">
|
<p style="<%= css_for_mailer_text %>">
|
||||||
<%= @direct_message.title %>
|
<%= @direct_message.title %>
|
||||||
</h2>
|
</p>
|
||||||
|
|
||||||
<div style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif;font-size: 14px;font-weight: normal;line-height: 24px;">
|
<div style="<%= css_for_mailer_text %>">
|
||||||
<%= simple_format sanitize_and_auto_link(@direct_message.body), {}, sanitize: false %>
|
<%= mailer_simple_format(@direct_message.body) %>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
|
|||||||
@@ -1,21 +1,24 @@
|
|||||||
<td style="padding-bottom: 20px; padding-left: 10px;">
|
<td style="<%= css_for_mailer_content %>">
|
||||||
<h1 style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif;">
|
|
||||||
<%= t("mailers.email_verification.title") %>
|
|
||||||
</h1>
|
|
||||||
|
|
||||||
<p style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif;font-size: 14px;font-weight: normal;line-height: 24px;">
|
<p style="<%= css_for_mailer_text %>">
|
||||||
|
<%= t("mailers.email_verification.title") %>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p style="<%= css_for_mailer_text %>">
|
||||||
<%= sanitize(t("mailers.email_verification.instructions",
|
<%= sanitize(t("mailers.email_verification.instructions",
|
||||||
verification_link: link_to(
|
verification_link: link_to(
|
||||||
t("mailers.email_verification.click_here_to_verify"),
|
t("mailers.email_verification.click_here_to_verify"),
|
||||||
email_url(email_verification_token: @token)))) %>
|
email_url(email_verification_token: @token), style: css_for_mailer_link)),
|
||||||
|
attributes: %w[href style]) %>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif;font-size: 14px;font-weight: normal;line-height: 24px;">
|
<p style="<%= css_for_mailer_text %>">
|
||||||
<%= sanitize(t("mailers.email_verification.instructions_2",
|
<%= sanitize(t("mailers.email_verification.instructions_2",
|
||||||
document_type: humanize_document_type(@document_type),
|
document_type: humanize_document_type(@document_type),
|
||||||
document_number: @document_number)) %>
|
document_number: @document_number)) %>
|
||||||
</p>
|
</p>
|
||||||
<p style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif;font-size: 14px;font-weight: normal;line-height: 24px;">
|
|
||||||
|
<p style="<%= css_for_mailer_text %>">
|
||||||
<%= t("mailers.email_verification.thanks") %>
|
<%= t("mailers.email_verification.thanks") %>
|
||||||
</p>
|
</p>
|
||||||
</td>
|
</td>
|
||||||
|
|||||||
@@ -1,14 +1,14 @@
|
|||||||
<td style="padding-bottom: 20px; padding-left: 10px;">
|
<td style="<%= css_for_mailer_content %>">
|
||||||
|
|
||||||
<h1 style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif;">
|
<h1 style="<%= css_for_mailer_heading %>">
|
||||||
<%= t("mailers.evaluation_comment.title", investment: @email.commentable.title) %>
|
<%= t("mailers.evaluation_comment.title", investment: @email.commentable.title) %>
|
||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
<p style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif;font-size: 14px;font-weight: normal;line-height: 24px;">
|
<p style="<%= css_for_mailer_text %>">
|
||||||
<%= t("mailers.evaluation_comment.hi") %> <strong><%= @email_to.name %></strong>,
|
<%= t("mailers.evaluation_comment.hi") %> <strong><%= @email_to.name %></strong>,
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif;font-size: 14px;font-weight: normal;line-height: 24px;">
|
<p style="<%= css_for_mailer_text %>">
|
||||||
<%= sanitize(t(
|
<%= sanitize(t(
|
||||||
"mailers.evaluation_comment.new_comment_by",
|
"mailers.evaluation_comment.new_comment_by",
|
||||||
commenter: @email.comment.author.name,
|
commenter: @email.comment.author.name,
|
||||||
@@ -16,10 +16,11 @@
|
|||||||
)) %>
|
)) %>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p>
|
<p style="<%= css_for_mailer_text %>">
|
||||||
<%= t("mailers.evaluation_comment.commenter_info", commenter: @email.comment.author.name, time: l(@email.comment.created_at)) %>
|
<%= t("mailers.evaluation_comment.commenter_info", commenter: @email.comment.author.name, time: l(@email.comment.created_at)) %>
|
||||||
</p>
|
</p>
|
||||||
<div style="border-left: 2px solid #DEE0E3;font-family: 'Open Sans','Helvetica Neue',arial,sans-serif;font-size: 14px;font-style: italic;font-weight: normal;line-height: 24px;margin-left: 20px;padding: 0px 10px;">
|
|
||||||
<%= simple_format sanitize_and_auto_link(@email.comment.body), {}, sanitize: false %>
|
<div style="<%= css_for_mailer_text + css_for_mailer_quote %>">
|
||||||
|
<%= mailer_simple_format(@email.comment.body) %>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
|
|||||||
@@ -1,16 +1,14 @@
|
|||||||
<td style="padding-bottom: 20px; padding-left: 10px;">
|
<td style="<%= css_for_mailer_content %>">
|
||||||
|
|
||||||
<h1 style="font-family: 'Open Sans','Helvetica Neue',sans-serif;">
|
<h1 style="<%= css_for_mailer_heading %>">
|
||||||
<%= t("mailers.machine_learning_error.title") %>
|
<%= t("mailers.machine_learning_error.title") %>
|
||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
<p style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif;font-size: 14px;
|
<p style="<%= css_for_mailer_text %>">
|
||||||
font-weight: normal;line-height: 24px;">
|
|
||||||
<%= t("mailers.machine_learning_error.text") %>
|
<%= t("mailers.machine_learning_error.text") %>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif;font-size: 14px;
|
<p style="<%= css_for_mailer_text %>">
|
||||||
font-weight: normal;line-height: 24px;">
|
|
||||||
<%= link_to t("mailers.machine_learning_error.link"), admin_machine_learning_url,
|
<%= link_to t("mailers.machine_learning_error.link"), admin_machine_learning_url,
|
||||||
style: "color: #2895F1; text-decoration:none;" %>
|
style: "color: #2895F1; text-decoration:none;" %>
|
||||||
</p>
|
</p>
|
||||||
|
|||||||
@@ -1,16 +1,14 @@
|
|||||||
<td style="padding-bottom: 20px; padding-left: 10px;">
|
<td style="<%= css_for_mailer_content %>">
|
||||||
|
|
||||||
<h1 style="font-family: 'Open Sans','Helvetica Neue',sans-serif;">
|
<h1 style="<%= css_for_mailer_heading %>">
|
||||||
<%= t("mailers.machine_learning_success.title") %>
|
<%= t("mailers.machine_learning_success.title") %>
|
||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
<p style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif;font-size: 14px;
|
<p style="<%= css_for_mailer_text %>">
|
||||||
font-weight: normal;line-height: 24px;">
|
|
||||||
<%= t("mailers.machine_learning_success.text") %>
|
<%= t("mailers.machine_learning_success.text") %>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif;font-size: 14px;
|
<p style="<%= css_for_mailer_text %>">
|
||||||
font-weight: normal;line-height: 24px;">
|
|
||||||
<%= link_to t("mailers.machine_learning_success.link"), admin_machine_learning_url,
|
<%= link_to t("mailers.machine_learning_success.link"), admin_machine_learning_url,
|
||||||
style: "color: #2895F1; text-decoration:none;" %>
|
style: "color: #2895F1; text-decoration:none;" %>
|
||||||
</p>
|
</p>
|
||||||
|
|||||||
@@ -1,14 +1,15 @@
|
|||||||
<td style="padding-bottom: 20px; padding-left: 10px;">
|
<td style="<%= css_for_mailer_content %>">
|
||||||
<p style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif;font-size: 14px;line-height: 24px;">
|
|
||||||
|
<p style="<%= css_for_mailer_text %>">
|
||||||
<%= auto_link_already_sanitized_html wysiwyg(@newsletter.body) %>
|
<%= auto_link_already_sanitized_html wysiwyg(@newsletter.body) %>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif;font-size: 12px;font-weight: normal;line-height: 20px;">
|
<p style="<%= css_for_mailer_text %>">
|
||||||
<%= sanitize(t("mailers.config.unsubscribe_text",
|
<%= sanitize(t("mailers.config.unsubscribe_text",
|
||||||
notifications: link_to(
|
notifications: link_to(
|
||||||
t("mailers.config.notifications_link"),
|
t("mailers.config.notifications_link"),
|
||||||
edit_subscriptions_url(token: @token),
|
edit_subscriptions_url(token: @token),
|
||||||
style: "color: #2895F1; text-decoration: none;"
|
style: css_for_mailer_link
|
||||||
),
|
),
|
||||||
notification: User.human_attribute_name(:newsletter)
|
notification: User.human_attribute_name(:newsletter)
|
||||||
), attributes: %w[href style]) %>
|
), attributes: %w[href style]) %>
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
<td style="padding-bottom: 20px; padding-left: 10px;">
|
<td style="<%= css_for_mailer_content %>">
|
||||||
|
|
||||||
<h1 style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif;">
|
<h1 style="<%= css_for_mailer_heading %>">
|
||||||
<%= t("mailers.proposal_notification_digest.title",
|
<%= t("mailers.proposal_notification_digest.title",
|
||||||
org_name: Setting["org_name"]) %>
|
org_name: Setting["org_name"]) %>
|
||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
<p style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif;font-size: 14px;font-weight: normal;line-height: 24px;">
|
<p style="<%= css_for_mailer_text %>">
|
||||||
<%= t("mailers.proposal_notification_digest.info",
|
<%= t("mailers.proposal_notification_digest.info",
|
||||||
org_name: Setting["org_name"]) %>
|
org_name: Setting["org_name"]) %>
|
||||||
</p>
|
</p>
|
||||||
@@ -15,15 +15,15 @@
|
|||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<td style="padding-bottom: 20px; padding-left: 10px;">
|
<td style="padding-bottom: 20px; padding-left: 10px;">
|
||||||
<p style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif;font-size: 20px;font-weight: bold;line-height: 24px; margin: 0;">
|
<h2 style="<%= css_for_mailer_subheading %>">
|
||||||
<%= link_to notification.notifiable.title, proposal_url(notification.notifiable.proposal, anchor: "tab-notifications"), style: "color: #2895F1; text-decoration: none;" %>
|
<%= link_to notification.notifiable.title, proposal_url(notification.notifiable.proposal, anchor: "tab-notifications"), style: css_for_mailer_link %>
|
||||||
</p>
|
</h2>
|
||||||
<p style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif;font-size: 14px;font-weight: normal;line-height: 24px; margin-top: 0; color: #cccccc;">
|
<p style="<%= css_for_mailer_text %>">
|
||||||
<%= notification.notifiable.proposal.title %> •
|
<%= notification.notifiable.proposal.title %> •
|
||||||
<%= notification.notifiable.proposal.created_at.to_date %> •
|
<%= notification.notifiable.proposal.created_at.to_date %> •
|
||||||
<%= notification.notifiable.proposal.author.name %>
|
<%= notification.notifiable.proposal.author.name %>
|
||||||
</p>
|
</p>
|
||||||
<p style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif;font-size: 14px;font-weight: normal;line-height: 24px;">
|
<p style="<%= css_for_mailer_text %>">
|
||||||
<%= notification.notifiable.body %>
|
<%= notification.notifiable.body %>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
@@ -31,12 +31,12 @@
|
|||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<td style="padding-bottom: 12px;">
|
<td style="padding-bottom: 12px;">
|
||||||
<%= link_to proposal_url(notification.notifiable.proposal, anchor: "social-share"), style: "font-family: 'Open Sans','Helvetica Neue',arial,sans-serif; background: #f7f5f2; border-radius: 6px; color: #3d3d66!important; font-weight: bold; margin: 0px; padding: 10px 15px; text-align: center; text-decoration: none; min-width: 160px; display: inline-block;" do %>
|
<%= link_to proposal_url(notification.notifiable.proposal, anchor: "social-share"), style: css_for_mailer_button do %>
|
||||||
<%= image_tag("icon_mailer_share.png", style: "border: 0; display: inline-block; width: 100%; max-width: 16px", alt: "") %>
|
<%= image_tag("icon_mailer_share.png", style: "border: 0; display: inline-block; width: 100%; max-width: 16px", alt: "") %>
|
||||||
<%= t("mailers.proposal_notification_digest.share") %>
|
<%= t("mailers.proposal_notification_digest.share") %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<%= link_to proposal_url(notification.notifiable.proposal, anchor: "comments"), style: "font-family: 'Open Sans','Helvetica Neue',arial,sans-serif; background: #f7f5f2; border-radius: 6px; color: #3d3d66!important; font-weight: bold; margin: 0px; padding: 10px 15px; text-align: center; text-decoration: none; min-width: 160px; display: inline-block; margin-left: 12px;" do %>
|
<%= link_to proposal_url(notification.notifiable.proposal, anchor: "comments"), style: css_for_mailer_button do %>
|
||||||
<%= image_tag("icon_mailer_comment.png", style: "border: 0; display: inline-block; width: 100%; max-width: 16px; vertical-align: middle;", alt: "") %>
|
<%= image_tag("icon_mailer_comment.png", style: "border: 0; display: inline-block; width: 100%; max-width: 16px; vertical-align: middle;", alt: "") %>
|
||||||
<%= t("mailers.proposal_notification_digest.comment") %>
|
<%= t("mailers.proposal_notification_digest.comment") %>
|
||||||
<% end %>
|
<% end %>
|
||||||
@@ -44,10 +44,10 @@
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<p style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif;font-size: 14px;font-weight: normal;line-height: 24px; margin: 0; padding-bottom: 20px;">
|
<p style="<%= css_for_mailer_text %>">
|
||||||
<%= sanitize(link_to(t("mailers.proposal_notification_digest.unfollow"),
|
<%= sanitize(link_to(t("mailers.proposal_notification_digest.unfollow"),
|
||||||
proposal_url(notification.notifiable.proposal),
|
proposal_url(notification.notifiable.proposal),
|
||||||
style: "color: #2895F1; text-decoration: none;")) %>
|
style: css_for_mailer_link), attributes: %w[href style]) %>
|
||||||
</p>
|
</p>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@@ -59,10 +59,11 @@
|
|||||||
</table>
|
</table>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<p style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif;font-size: 12px;font-weight: normal;line-height: 20px;">
|
<p style="<%= css_for_mailer_text %>">
|
||||||
<%= sanitize(t("mailers.proposal_notification_digest.unsubscribe_text",
|
<%= sanitize(t("mailers.proposal_notification_digest.unsubscribe_text",
|
||||||
notifications: link_to(t("mailers.config.notifications_link"),
|
notifications: link_to(t("mailers.config.notifications_link"),
|
||||||
edit_subscriptions_url(token: @token),
|
edit_subscriptions_url(token: @token),
|
||||||
style: "color: #2895F1; text-decoration: none;"))) %>
|
style: css_for_mailer_link)),
|
||||||
|
attributes: %w[href style]) %>
|
||||||
</p>
|
</p>
|
||||||
</td>
|
</td>
|
||||||
|
|||||||
@@ -1,28 +1,28 @@
|
|||||||
<td style="padding-bottom: 20px; padding-left: 10px;">
|
<td style="<%= css_for_mailer_content %>">
|
||||||
|
|
||||||
<h1 style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif;">
|
<h1 style="<%= css_for_mailer_heading %>">
|
||||||
<%= t("mailers.reply.title") %>
|
<%= t("mailers.reply.title") %>
|
||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
<p style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif;font-size: 14px;font-weight: normal;line-height: 24px;">
|
<p style="<%= css_for_mailer_text %>">
|
||||||
<%= t("mailers.reply.hi") %> <strong><%= @email.recipient.name %></strong>,
|
<%= t("mailers.reply.hi") %> <strong><%= @email.recipient.name %></strong>,
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif;font-size: 14px;font-weight: normal;line-height: 24px;">
|
<p style="<%= css_for_mailer_text %>">
|
||||||
<%= sanitize(t("mailers.reply.new_reply_by", commenter: @email.reply.author.name)) %>
|
<%= sanitize(t("mailers.reply.new_reply_by", commenter: @email.reply.author.name)) %>
|
||||||
<%= link_to @email.commentable.title, comment_url(@email.reply.id), style: "color: #2895F1; text-decoration:none;" %>
|
<%= link_to @email.commentable.title, comment_url(@email.reply.id), style: css_for_mailer_link %>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<div style="border-left: 2px solid #DEE0E3;font-family: 'Open Sans','Helvetica Neue',arial,sans-serif;font-size: 14px;font-style: italic;font-weight: normal;line-height: 24px;margin-left: 20px;padding: 0px 10px;">
|
<div style="<%= css_for_mailer_text + css_for_mailer_quote %>">
|
||||||
<%= simple_format sanitize_and_auto_link(@email.reply.body), {}, sanitize: false %>
|
<%= mailer_simple_format(@email.reply.body) %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<p style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif;font-size: 12px;font-weight: normal;line-height: 20px;">
|
<p style="<%= css_for_mailer_text %>">
|
||||||
<%= sanitize(t("mailers.config.unsubscribe_text",
|
<%= sanitize(t("mailers.config.unsubscribe_text",
|
||||||
notifications: link_to(
|
notifications: link_to(
|
||||||
t("mailers.config.notifications_link"),
|
t("mailers.config.notifications_link"),
|
||||||
edit_subscriptions_url(token: @token),
|
edit_subscriptions_url(token: @token),
|
||||||
style: "color: #2895F1; text-decoration: none;"
|
style: css_for_mailer_link
|
||||||
),
|
),
|
||||||
notification: User.human_attribute_name(:email_on_comment_reply)
|
notification: User.human_attribute_name(:email_on_comment_reply)
|
||||||
), attributes: %w[href style]) %>
|
), attributes: %w[href style]) %>
|
||||||
|
|||||||
@@ -1,23 +1,23 @@
|
|||||||
<td style="padding-bottom: 20px; padding-left: 10px;">
|
<td style="<%= css_for_mailer_content %>">
|
||||||
<h1 style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif;">
|
<h1 style="<%= css_for_mailer_heading %>">
|
||||||
<%= t("mailers.user_invite.title",
|
<%= t("mailers.user_invite.title",
|
||||||
org: Setting["org_name"]) %>
|
org: Setting["org_name"]) %>
|
||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
<p style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif;font-size: 14px;font-weight: normal;line-height: 24px;">
|
<p style="<%= css_for_mailer_text %>">
|
||||||
<%= t("mailers.user_invite.text",
|
<%= t("mailers.user_invite.text",
|
||||||
org: Setting["org_name"]) %>
|
org: Setting["org_name"]) %>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p style="text-align: center;">
|
<p style="text-align: center;">
|
||||||
<%= link_to t("mailers.user_invite.button"), new_user_registration_url, style: "font-family: 'Open Sans','Helvetica Neue',arial,sans-serif; background: #004A83; border-radius: 6px; color: #fff !important; font-weight: bold; margin: 0px; padding: 10px 15px; text-align: center; text-decoration: none; min-width: 160px; display: inline-block; margin-left: 12px;" %>
|
<%= link_to t("mailers.user_invite.button"), new_user_registration_url, style: css_for_mailer_button %>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif;font-size: 14px;font-weight: normal;line-height: 24px;">
|
<p style="<%= css_for_mailer_text %>">
|
||||||
<%= t("mailers.user_invite.ignore") %>
|
<%= t("mailers.user_invite.ignore") %>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif;font-size: 14px;font-weight: normal;line-height: 24px;">
|
<p style="<%= css_for_mailer_text %>">
|
||||||
<%= t("mailers.user_invite.thanks") %>
|
<%= t("mailers.user_invite.thanks") %>
|
||||||
</p>
|
</p>
|
||||||
</td>
|
</td>
|
||||||
|
|||||||
Reference in New Issue
Block a user