adjust media asset view to correspond with standard image display
git-svn-id: svn://svn.cy55.de/Zope3/src/loops/trunk@2956 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
parent
20276442c2
commit
9588e5e9d6
1 changed files with 4 additions and 2 deletions
|
@ -1,13 +1,15 @@
|
||||||
<!-- ZPT macros for demo view -->
|
<!-- ZPT macros for demo view -->
|
||||||
|
|
||||||
<metal:block define-macro="asset">
|
<metal:block define-macro="asset">
|
||||||
<div tal:attributes="class string:content-$level;">
|
<div tal:attributes="ondblclick python: item.openEditWindow('edit.html')">
|
||||||
<metal:title use-macro="item/conceptMacros/concepttitle" />
|
<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)">
|
<p tal:define="url python: view.getUrlForTarget(item)">
|
||||||
<a href="#"
|
<a href="#"
|
||||||
tal:attributes="href string:${url}/view"><img
|
tal:attributes="href string:${url}/view"><img
|
||||||
tal:attributes="src string:${url}/@@mediaasset.html?v=medium" /></a>
|
tal:attributes="src string:${url}/@@mediaasset.html?v=medium" /></a>
|
||||||
</p>
|
</p>
|
||||||
|
<p><i tal:content="item/description">Description</i></p>
|
||||||
</div>
|
</div>
|
||||||
</metal:block>
|
</metal:block>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue