diff --git a/app/assets/images/social_buttons_mailer.png b/app/assets/images/social_buttons_mailer.png new file mode 100644 index 000000000..522f575cb Binary files /dev/null and b/app/assets/images/social_buttons_mailer.png differ diff --git a/app/views/dashboard/mailer/forward.html.erb b/app/views/dashboard/mailer/forward.html.erb index b3f5ee999..3788c94aa 100644 --- a/app/views/dashboard/mailer/forward.html.erb +++ b/app/views/dashboard/mailer/forward.html.erb @@ -1,19 +1,61 @@ -
-

<%= @proposal.title %>

-

<%= t("dashboard.mailer.forward.subtitle") %>

-
-<%= image_tag @proposal.image.attachment.url(:large), class: 'proposal-image' if @proposal.image.present? %> -<%= image_tag 'default_mailing.jpg', class: 'proposal-image' unless @proposal.image.present? %> -
- <%== t("dashboard.mailer.forward.introduction") %> - <%= link_to t("dashboard.mailer.forward.support_it"), proposal_url(@proposal), class: 'support-link' %> - <%== t("dashboard.mailer.forward.share_info") %> + -

<%= t("dashboard.mailer.forward.share_in") %>

- <%= render partial: 'shared/social_share', locals: { - title: @proposal.title, - url: proposal_url(@proposal), - description: @proposal.summary - } %> + + + + + + +
+

<%= @proposal.title %>

+

<%= t("dashboard.mailer.forward.subtitle") %>

+
-
+ <% if @proposal.image.present? %> + <%= image_tag @proposal.image.attachment.url(:large), style: "max-width: 100%;" %> + <% else %> + <%= image_tag "default_mailing.jpg", style: "max-width: 100%;" %> + <% end %> + +

<%= t("dashboard.mailer.forward.hi")%>

+

<%= t("dashboard.mailer.forward.introduction", org: setting['org_name']) %>

+

<%= t("dashboard.mailer.forward.support") %>

+ + + + + + + +
+ <%= link_to proposal_url(@proposal), + style: "font-family: 'Open Sans',arial,sans-serif; background: #3700fd; + border-radius: 6px; color: #fff !important; font-weight: bold; + padding: 17px 20px; text-align: center; text-decoration: none; + font-size: 20px; min-width: 200px; display: inline-block;", + target: "_blank" do %> + <%= t("dashboard.mailer.forward.support_button") %> + <% end %> +
+ +

<%= t("dashboard.mailer.forward.share") %>

+ + + + + + + + + + +
+

<%= t("dashboard.mailer.forward.share_in") %>

+
+ <%= link_to proposal_url(@proposal, anchor: "social-share") do %> + <%= image_tag("social_buttons_mailer.png", alt: t("dashboard.mailer.forward.share_in"), + style: "max-width: 100%;") %> + <% end %> +
+