Skip to content

Commit

Permalink
[WEB-2915] : Change method to print feed picture
Browse files Browse the repository at this point in the history
  • Loading branch information
boulch committed Oct 2, 2019
1 parent 1e808f3 commit 75ba44a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/collective/printrss/browser/macros.pt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
tal:define="oddrow repeat/item/odd"
tal:attributes="class python:oddrow and 'portletItem even' or 'portletItem odd'">
<div class="summary" tal:condition="context/want_to_print_summary"><tal:summary replace="structure python:item.get('summary').replace('<img','<img style={}'.format(context.get_style)) if context.want_to_print_picture is True else item.get('summary').replace('<img','<img style=display:none')">summary</tal:summary></div>
<div class="img" tal:condition="python:context.want_to_print_picture and item.get('image_url')"><img class="rss_picture" tal:attributes="style context/get_style;src item/image_url" /></div>
<!--div class="img" tal:condition="python:context.want_to_print_picture and item.get('image_url')"><img class="rss_picture" tal:attributes="style context/get_style;src item/image_url" /></div-->
<div class="img" tal:condition="python:context.want_to_print_picture and item.get('image_url')" tal:attributes="style python:'{} background-image:url({})'.format(context.get_style, item.get('image_url'))" />
<a target="_blank" href="#"
tal:attributes="href item/url"
class="tile">
Expand Down

0 comments on commit 75ba44a

Please sign in to comment.