Commit 2717249c authored by Fabien Morin's avatar Fabien Morin

if no thumbnail is found, do not display <img> markup. This avoir a 404 error.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31177 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent de2f39bf
......@@ -307,7 +307,7 @@
<key> <string>_text</string> </key>
<value> <string encoding="cdata"><![CDATA[
python: \'<div><a href= "%s/view"><img class="left" src="%s?display=thumbnail&format=PNG&" /><span style="font-size: normal">%s</span></a></div><p class="clear" />\' % (cell.absolute_url(), cell.Base_getThumbnailAbsoluteUrl(), cell.getDescription())
python: \'<div><a href= "%s/view">\' % cell.absolute_url() + (cell.Base_getThumbnailAbsoluteUrl() is not None and \'<img class="left" src="%s?display=thumbnail&format=PNG&" />\' % cell.Base_getThumbnailAbsoluteUrl() or \'\') + \'<span style="font-size: normal">%s</span></a></div><p class="clear" />\' % cell.getDescription()
]]></string> </value>
</item>
......
874
\ No newline at end of file
876
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment