Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Alexandru Emil Lupu <contact@alecslupu.ro>
  • Loading branch information
ahukkanen and alecslupu committed Apr 16, 2024
1 parent 9ffd03a commit 32ab6f1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion decidim-core/app/cells/decidim/card_l/image.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class="card__list-image">
<% if resource_image_url.present? %>
<% if has_image? %>
<%= image_tag resource_image_url, class: "w-full h-full object-cover" %>
<% else %>
<div class="w-full h-full relative">
Expand Down
2 changes: 2 additions & 0 deletions decidim-core/app/cells/decidim/card_l_cell.rb
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ def prefix_class(class_name = nil)
end

def resource_image_url
# Backwards compatibility.
return resource_image_path if respond_to?(:resource_image_path)
nil
end

Expand Down

0 comments on commit 32ab6f1

Please sign in to comment.