Skip to content
Snippets Groups Projects
Unverified Commit faf1ca75 authored by Sébastien Gaya's avatar Sébastien Gaya Committed by GitHub
Browse files

Merge pull request #1320 from noesya/fix-image

fix organization best logo
parents cd538044 6633c5b0
No related branches found
No related tags found
No related merge requests found
......@@ -17,7 +17,7 @@ class Communication::Block::Template::Organization::Element < Communication::Blo
organization ? organization.url : url
end
def best_logo
def best_logo_blob
organization ? organization.logo.blob : logo_component.blob
end
......
......@@ -47,9 +47,9 @@
</a>
<% end %>
</h3>
<% if element.best_logo %>
<% if element.best_logo_blob %>
<div class="media">
<%= kamifusen_tag element.best_logo, width: 600%>
<%= kamifusen_tag element.best_logo_blob, width: 600 %>
</div>
<% end %>
</article>
......
<% block.template.elements.first(3).each do |element| %>
<div class="me-2 bg-light p-2">
<% if element.best_logo.attached? %>
<%= kamifusen_tag element.best_logo %>
<% if element.best_logo_blob %>
<%= kamifusen_tag element.best_logo_blob %>
<% else %>
<p><%= element.best_name %></p>
<% end %>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment