Skip to content

Commit

Permalink
Merge pull request #333 from plone/332.bugfix
Browse files Browse the repository at this point in the history
Fix issue with events portlet rendering when thumbs disabled (#332)
  • Loading branch information
jensens authored Jun 18, 2021
2 parents eb21cb9 + 8df5a20 commit ba4daed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions news/332.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix events portlet error when rendering with thumbnails suppressed [alecpm]
2 changes: 1 addition & 1 deletion plone/app/event/portlets/portlet_events.pt
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
tal:attributes="href item_url;
title item_descr"
tal:define="scale item/context/@@images|nothing;">
<span tal:condition="item_hasimage">
<span tal:condition="python:thumb_scale and item_hasimage">
<img tal:define="img_tag python:scale.scale('image', scale=thumb_scale).tag(css_class='pull-right thumb-'+thumb_scale)"
tal:replace="structure img_tag" />
</span>
Expand Down

0 comments on commit ba4daed

Please sign in to comment.