put link on headline also on image pages
This commit is contained in:
parent
6d0a589015
commit
27d30244df
2 changed files with 7 additions and 4 deletions
|
@ -48,9 +48,10 @@
|
||||||
<metal:block define-macro="image">
|
<metal:block define-macro="image">
|
||||||
<div tal:attributes="ondblclick python: item.openEditWindow('edit.html')">
|
<div tal:attributes="ondblclick python: item.openEditWindow('edit.html')">
|
||||||
<div metal:use-macro="views/node_macros/object_actions" />
|
<div metal:use-macro="views/node_macros/object_actions" />
|
||||||
<h1 tal:content="item/title">Title</h1><br />
|
<h1><a tal:omit-tag="python: level > 1"
|
||||||
<img src="#"
|
tal:attributes="href request/URL"
|
||||||
tal:attributes="src
|
tal:content="item/title">Title</a></h1><br />
|
||||||
|
<img tal:attributes="src
|
||||||
string:${view/url}/.${view/targetId}/view?version=this" />
|
string:${view/url}/.${view/targetId}/view?version=this" />
|
||||||
<p><i tal:content="structure item/renderedDescription">Description</i></p>
|
<p><i tal:content="structure item/renderedDescription">Description</i></p>
|
||||||
<metal:fields use-macro="view/comment_macros/comments" />
|
<metal:fields use-macro="view/comment_macros/comments" />
|
||||||
|
|
|
@ -2,7 +2,9 @@
|
||||||
<div tal:attributes="ondblclick python: item.openEditWindow('edit.html')">
|
<div tal:attributes="ondblclick python: item.openEditWindow('edit.html')">
|
||||||
<tal:actions condition="view/showObjectActions">
|
<tal:actions condition="view/showObjectActions">
|
||||||
<div metal:use-macro="views/node_macros/object_actions" /></tal:actions>
|
<div metal:use-macro="views/node_macros/object_actions" /></tal:actions>
|
||||||
<h1 tal:content="item/title">Title</h1><br />
|
<h1><a tal:omit-tag="python: level > 1"
|
||||||
|
tal:attributes="href request/URL"
|
||||||
|
tal:content="item/title">Title</a></h1><br />
|
||||||
<p tal:define="url python: view.getUrlForTarget(item)">
|
<p tal:define="url python: view.getUrlForTarget(item)">
|
||||||
<a tal:omit-tag="view/isAnonymous"
|
<a tal:omit-tag="view/isAnonymous"
|
||||||
tal:attributes="href string:${url}/view?version=this"><img
|
tal:attributes="href string:${url}/view?version=this"><img
|
||||||
|
|
Loading…
Add table
Reference in a new issue