Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for #486 #603

Open
wants to merge 1 commit into
base: 2.2.x
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions news/486.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix broken summary view when thumbnails are disabled [alecpm]
3 changes: 1 addition & 2 deletions plone/app/contenttypes/browser/templates/listing_summary.pt
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@

<div metal:use-macro="context/@@listing_view/macros/document_byline"></div>

<div tal:define="thumb_url python:item_url + '/@@images/image/' + thumb_scale_summary;"
tal:condition="python: item_has_image and thumb_scale_summary"
<div tal:condition="python: item_has_image and thumb_scale_summary"
tal:attributes="class python: 'tileImage' if item_description else 'tileImageNoFloat'">
<a tal:attributes="href item_link">
<img tal:replace="structure python:image_scale.tag(item, 'image', scale=thumb_scale_summary, css_class='thumb-' + thumb_scale_summary)" />
Expand Down