Added default image for proposal dashboard mailing

This commit is contained in:
Juan Salvador Pérez García
2018-07-25 17:01:30 +02:00
parent 8876b285ce
commit 9eaa990145
3 changed files with 2 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 87 KiB

View File

@@ -3,6 +3,7 @@
<h2><%= t("dashboard.mailer.forward.subtitle") %></h2>
</header>
<%= 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? %>
<div class="mail-body">
<%== t("dashboard.mailer.forward.introduction") %>
<%= link_to t("dashboard.mailer.forward.support_it"), proposal_url(@proposal), class: 'support-link' %>

View File

@@ -6,6 +6,7 @@
<h2><%= t("dashboard.mailer.forward.subtitle") %></h2>
</div>
<%= 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? %>
<div class="mail-body">
<%== t("dashboard.mailer.forward.introduction") %>
<%= link_to t("dashboard.mailer.forward.support_it"), proposal_url(@proposal), class: 'support-link' %>