151 lines
5 KiB
XML
151 lines
5 KiB
XML
<html i18n:domain="loops">
|
|
|
|
|
|
<metal:block define-macro="layout">
|
|
<tal:part repeat="part item/getParts">
|
|
<metal:part use-macro="part/macro" />
|
|
</tal:part>
|
|
</metal:block>
|
|
|
|
|
|
<metal:block define-macro="grid">
|
|
<tal:cell repeat="cell part/getChildren">
|
|
<div tal:attributes="class cell/cssClass;
|
|
style cell/style">
|
|
<metal:image use-macro="item/macros/image" />
|
|
<a tal:attributes="href cell/targetUrl;
|
|
title cell/description">
|
|
<div class="legend">
|
|
<b tal:content="cell/title" /><br />
|
|
<i tal:content="cell/description" />
|
|
</div>
|
|
</a>
|
|
</div>
|
|
</tal:cell>
|
|
</metal:block>
|
|
|
|
|
|
<metal:block define-macro="list">
|
|
<tal:cell repeat="cell part/getChildren">
|
|
<div tal:condition="cell/img"
|
|
tal:attributes="class python:cell.cssClass[0]">
|
|
<metal:image use-macro="item/macros/image" />
|
|
<br />
|
|
</div>
|
|
<div tal:attributes="class python:cell.cssClass[1]">
|
|
<a tal:attributes="href cell/targetUrl">
|
|
<b tal:content="cell/title" /></a><br />
|
|
<tal:desc condition="cell/description">
|
|
<span tal:content="structure cell/renderedDescription" /></tal:desc>
|
|
<br />
|
|
</div>
|
|
</tal:cell>
|
|
</metal:block>
|
|
|
|
|
|
<metal:block define-macro="header">
|
|
<div tal:define="cell part/getView">
|
|
<metal:headline use-macro="item/macros/headline" />
|
|
<tal:image condition="part/showImage">
|
|
<div tal:define="showImageLink python:True"
|
|
tal:attributes="class python:part.cssClass[0]">
|
|
<metal:image use-macro="item/macros/image" />
|
|
<span tal:condition="cell/img/showInfo|nothing">
|
|
<a tal:define="url string:${cell/img/url}/meta_info.html"
|
|
tal:attributes="href url;
|
|
onclick string:objectDialog('', '$url');;
|
|
return false">
|
|
<img tal:attributes="src
|
|
string:${controller/resourceBase}/cybertools.icons/info.png" />
|
|
</a></span>
|
|
</div>
|
|
</tal:image>
|
|
<div tal:condition="cell/renderedTextDescription"
|
|
tal:attributes="class python:part.cssClass[1]">
|
|
<span tal:content="structure cell/renderedTextDescription" />
|
|
</div>
|
|
<tal:break condition="python:part.showImage and cell.img">
|
|
<br style="clear: both" /> </tal:break>
|
|
<div tal:condition="cell/renderedText"
|
|
tal:attributes="class python:part.cssClass[2]">
|
|
<metal:text use-macro="item/macros/text" />
|
|
</div>
|
|
</div>
|
|
</metal:block>
|
|
|
|
|
|
<!-- resources listing macros -->
|
|
|
|
<metal:block define-macro="imagegrid"
|
|
tal:define="showImageLink python:True">
|
|
<tal:cell repeat="cell part/getImages">
|
|
<div tal:attributes="class cell/cssClass;
|
|
style cell/style">
|
|
<metal:image use-macro="item/macros/image" />
|
|
<div class="legend">
|
|
<b tal:content="cell/title" />
|
|
<span tal:condition="cell/img/showInfo|nothing">
|
|
<a tal:define="url string:${cell/img/url}/meta_info.html"
|
|
tal:attributes="href url;
|
|
onclick string:objectDialog('', '$url');;
|
|
return false">
|
|
<img tal:attributes="src
|
|
string:${controller/resourceBase}/cybertools.icons/info.png" />
|
|
</a></span>
|
|
<br />
|
|
<i tal:content="cell/description" />
|
|
</div>
|
|
</div>
|
|
</tal:cell>
|
|
</metal:block>
|
|
|
|
|
|
<!-- basic component macros -->
|
|
|
|
<metal:image define-macro="image">
|
|
<tal:img condition="cell/img">
|
|
<a title="Information about this object."
|
|
dojoType="dojox.image.Lightbox" group="mediasset"
|
|
i18n:attributes="title"
|
|
tal:attributes="href cell/img/fullImageUrl;
|
|
title cell/img/title">
|
|
<img tal:condition="showImageLink|python:False"
|
|
tal:attributes="src cell/img/src;
|
|
class cell/img/cssClass;
|
|
alt cell/title" /></a>
|
|
<a tal:condition="not:showImageLink|python:False"
|
|
tal:attributes="href cell/targetUrl;
|
|
title cell/title">
|
|
<img tal:attributes="src cell/img/src;
|
|
class cell/img/cssClass;
|
|
alt cell/title" /></a>
|
|
</tal:img>
|
|
</metal:image>
|
|
|
|
|
|
<metal:block define-macro="text"
|
|
tal:define="text cell/renderedText"
|
|
tal:condition="text">
|
|
<span tal:content="structure text" />
|
|
<br />
|
|
</metal:block>
|
|
|
|
|
|
<metal:block define-macro="headline">
|
|
<h1 tal:attributes="ondblclick cell/openEditWindow">
|
|
<a tal:attributes="href cell/targetUrl"
|
|
tal:content="cell/title" />
|
|
<a title="Show tabular view"
|
|
i18n:attributes="title"
|
|
tal:condition="cell/editable"
|
|
tal:attributes="href string:${cell/targetUrl}?loops.viewName=index.html">
|
|
<img tal:attributes="src string:$resourceBase/cybertools.icons/table.png" />
|
|
</a>
|
|
</h1>
|
|
<div tal:condition="cell/description">
|
|
<i tal:content="structure cell/renderedDescription" />
|
|
</div>
|
|
</metal:block>
|
|
|
|
|
|
</html>
|