Skip to content

Commit

Permalink
Merge pull request #101 from plone/fgrcon-fix-2077
Browse files Browse the repository at this point in the history
Fgrcon fix 2077
  • Loading branch information
thet authored Jun 17, 2017
2 parents 624fb27 + d4458b0 commit 9bdd2b2
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ New features:

Bug fixes:

- fixed css-classes for thumb scales ...
https://github.com/plone/Products.CMFPlone/issues/2077
[fgrcon]

- Fix regression where navigation portlet ignored unlimited setting for
*Navigation tree depth* setting
[datakurre]
Expand Down
2 changes: 1 addition & 1 deletion plone/app/portlets/portlets/navigation_recurse.pt
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
src python:view.getMimeTypeIcon(node);">

<img tal:condition="python:has_thumb and thumb_scale"
tal:replace="structure python:image_scale.tag(item, 'image', scale=thumb_scale, css_class='pull-right image-'+thumb_scale)">
tal:replace="structure python:image_scale.tag(item, 'image', scale=thumb_scale, css_class='pull-right thumb-'+thumb_scale)">

<span tal:replace="node/Title">Selected Item Title</span>
</a>
Expand Down
2 changes: 1 addition & 1 deletion plone/app/portlets/portlets/news.pt
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
tal:attributes="href obj/getURL;
title obj/Description">
<img tal:condition="python:obj.getIcon and thumb_scale"
tal:replace="structure python:image_scale.tag(obj, 'image', scale=thumb_scale, css_class='pull-right image-'+thumb_scale)" />
tal:replace="structure python:image_scale.tag(obj, 'image', scale=thumb_scale, css_class='pull-right thumb-'+thumb_scale)" />

<span tal:replace="obj/pretty_title_or_id">
Plone 5.1 announced!
Expand Down
2 changes: 1 addition & 1 deletion plone/app/portlets/portlets/recent.pt
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
src python:view.getMimeTypeIcon(obj);">

<img tal:condition="python:obj.getIcon and thumb_scale and not supress_thumb and image_scale"
tal:replace="structure python:image_scale.tag(obj, 'image', scale=thumb_scale, css_class='pull-right image-'+thumb_scale)" />
tal:replace="structure python:image_scale.tag(obj, 'image', scale=thumb_scale, css_class='pull-right thumb-'+thumb_scale)" />

<span tal:content="obj/pretty_title_or_id">
Title
Expand Down
2 changes: 1 addition & 1 deletion plone/app/portlets/portlets/review.pt
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
class string:$review_state_class tile $item_class">

<img tal:condition="python:hasImage and thumb_scale!='none' and imagescale is not None"
tal:replace="structure python:image.scale('image', scale=thumb_scale).tag(css_class='pull-right image-'+thumb_scale)"/>
tal:replace="structure python:image.scale('image', scale=thumb_scale).tag(css_class='pull-right thumb-'+thumb_scale)"/>

<span tal:replace="obj/title">
Title
Expand Down

0 comments on commit 9bdd2b2

Please sign in to comment.