loops/media/browser/asset.pt
helmutm 40cee5d212 add '?version=this' to src or href URLs for files and media assets to make sure that the selected version is displayed
git-svn-id: svn://svn.cy55.de/Zope3/src/loops/trunk@3030 fd906abe-77d9-0310-91a1-e0d9ade77398
2008-12-04 07:40:24 +00:00

14 lines
580 B
XML

<metal:block define-macro="asset">
<div tal:attributes="ondblclick python: item.openEditWindow('edit.html')">
<div metal:use-macro="views/node_macros/object_actions" />
<h1 tal:content="item/title">Title</h1><br />
<p tal:define="url python: view.getUrlForTarget(item)">
<a href="#"
tal:attributes="href string:${url}/view?version=this"><img
tal:attributes="src
string:${url}/@@mediaasset.html?version=this&v=medium" /></a>
</p>
<p><i tal:content="item/description">Description</i></p>
</div>
</metal:block>