Simplify rendering proposal image in dashboard

So it's now similar to the way we render images in other places.
This commit is contained in:
Javi Martín
2021-07-27 02:33:44 +02:00
parent 6cf3c743cf
commit da055edb37

View File

@@ -9,11 +9,7 @@
</div> </div>
<div class="margin-bottom"> <div class="margin-bottom">
<% if proposal.image.present? %> <%= image_tag(proposal.image_url(:large).presence || "default_mailing.jpg") %>
<%= image_tag proposal.image.attachment.url(:large) %>
<% else %>
<%= image_tag "default_mailing.jpg" %>
<% end %>
</div> </div>
<div class="mail-body"> <div class="mail-body">