show object actions (esp. state information) of posts in blog

This commit is contained in:
Helmut Merz 2012-11-22 18:44:04 +01:00
parent e8cb0c94a8
commit 1e46a7dc67

View file

@ -1,5 +1,4 @@
<!-- ZPT macros for loops.compound.blog views
$Id$ -->
<metal:block define-macro="blog"> <metal:block define-macro="blog">
<div> <div>
@ -7,9 +6,12 @@
<div tal:repeat="related item/blogPosts" <div tal:repeat="related item/blogPosts"
class="blog"> class="blog">
<tal:child define="data related/data"> <tal:child define="data related/data">
<tal:actions condition="view/showObjectActions"
define="target nocall:related">
<div metal:use-macro="views/node_macros/object_actions" />
</tal:actions>
<h1 class="headline"> <h1 class="headline">
<a href="#" <a tal:content="related/title"
tal:content="related/title"
tal:attributes="href python: view.getUrlForTarget(related);">Post</a> tal:attributes="href python: view.getUrlForTarget(related);">Post</a>
</h1> </h1>
<div class="info" <div class="info"