88 lines
3.3 KiB
XML
Executable file
88 lines
3.3 KiB
XML
Executable file
<html i18n:domain="loops">
|
|
|
|
|
|
<metal:block define-macro="bloglist">
|
|
<div tal:define="show_headline nothing">
|
|
<metal:fields use-macro="item/template/macros/concepttitle" /><br />
|
|
<metal:fields use-macro="item/template/macros/conceptchildren" />
|
|
</div>
|
|
</metal:block>
|
|
|
|
|
|
<metal:block define-macro="blog">
|
|
<div>
|
|
<metal:title use-macro="view/concept_macros/concepttitle" />
|
|
<div tal:repeat="related item/blogPosts"
|
|
class="blog">
|
|
<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">
|
|
<a tal:content="related/title"
|
|
tal:attributes="href python: view.getUrlForTarget(related);">Post</a>
|
|
</h1>
|
|
<div class="info"
|
|
tal:define="url data/creatorUrl|nothing">
|
|
<span tal:content="data/date">2008-01-02</span> /
|
|
<a tal:omit-tag="not:url"
|
|
tal:content="data/creator"
|
|
tal:attributes="href url">Will Smith</a>
|
|
</div>
|
|
<div class="text"
|
|
tal:define="description related/renderedDescription"
|
|
tal:condition="description">
|
|
<span tal:content="structure description">Description</span></div>
|
|
<div class="text"
|
|
tal:condition="nothing"
|
|
xtal:condition="python: repeat['related'].index() < 3">
|
|
<span tal:content="structure python:
|
|
item.renderText(data['text'], related.adapted.textContentType)"></span>
|
|
</div>
|
|
<div class="text"
|
|
tal:condition="data/text">
|
|
<a tal:attributes="href python: view.getUrlForTarget(related);">
|
|
<b i18n:translate="">more...</b></a></div>
|
|
</tal:child>
|
|
</div>
|
|
<metal:resources use-macro="view/concept_macros/conceptchildren" />
|
|
<metal:resources use-macro="view/concept_macros/conceptresources" />
|
|
</div>
|
|
</metal:block>
|
|
|
|
|
|
<div metal:define-macro="blogpost"
|
|
tal:define="data item/data"
|
|
class="blogpost">
|
|
<metal:block use-macro="view/concept_macros/concepttitle_only" />
|
|
<div class="info"
|
|
tal:define="url data/creatorUrl|nothing">
|
|
<span tal:content="data/date">2008-01-02</span> /
|
|
<a tal:omit-tag="not:url"
|
|
tal:content="data/creator"
|
|
tal:attributes="href url">Will Smith</a>
|
|
<span tal:condition="item/adapted/private|nothing">
|
|
(<span i18n:translate="">Private</span>)
|
|
</span>
|
|
</div>
|
|
<div class="description"
|
|
tal:define="description description|item/renderedDescription"
|
|
tal:condition="description">
|
|
<span tal:content="structure description">Description</span>
|
|
</div>
|
|
<div class="text"
|
|
tal:content="structure item/render">Here comes the text...</div>
|
|
<div class="comment"
|
|
tal:define="comment data/privateComment|nothing"
|
|
tal:condition="comment">
|
|
<h4 i18n:translate="" class="headline">Private Comment</h4>
|
|
<div tal:content="structure python:
|
|
item.renderText(comment, 'text/restructured')">Comment</div></div>
|
|
<metal:resources use-macro="view/concept_macros/conceptchildren" />
|
|
<metal:resources use-macro="view/concept_macros/conceptresources" />
|
|
<metal:block use-macro="view/comment_macros/comments" />
|
|
</div>
|
|
|
|
|
|
</html>
|