98 lines
3.4 KiB
XML
98 lines
3.4 KiB
XML
<!-- $Id$ -->
|
|
|
|
|
|
<metal:report define-macro="report"
|
|
tal:define="info item/getData">
|
|
<metal:title use-macro="item/conceptMacros/concepttitle" />
|
|
<metal:listing use-macro="info/macro" />
|
|
</metal:report>
|
|
|
|
|
|
<metal:overview define-macro="overview">
|
|
<table class="listing">
|
|
<tr>
|
|
<th i18n:translate="">Period</th>
|
|
<th i18n:translate="">Access</th>
|
|
<th i18n:translate="">Changes</th>
|
|
<th i18n:translate="">Additions</th>
|
|
<th i18n:translate="">Total</th>
|
|
</tr>
|
|
<tr tal:repeat="row info/data"
|
|
tal:attributes="class python: repeat['row'].odd() and 'even' or 'odd'">
|
|
<td tal:content="row/period"></td>
|
|
<td class="number">
|
|
<a tal:omit-tag="python: row['access'] == 0"
|
|
tal:attributes="href string:?period=${row/period}&select=access"
|
|
tal:content="row/access" /></td>
|
|
<td class="number">
|
|
<a tal:omit-tag="python: row['changed'] == 0"
|
|
tal:attributes="href string:?period=${row/period}&select=changes"
|
|
tal:content="row/changed" /></td>
|
|
<td class="number">
|
|
<a tal:omit-tag="python: row['new'] == 0"
|
|
tal:attributes="href string:?period=${row/period}&select=new"
|
|
tal:content="row/new" /></td>
|
|
<td class="number"
|
|
tal:content="row/count"></td>
|
|
</tr>
|
|
</table>
|
|
</metal:overview>
|
|
|
|
|
|
<metal:recent define-macro="period">
|
|
<h2 i18n:translate="">
|
|
Period <span i18n:name="period" tal:content="request/period" />,
|
|
<span i18n:name="select" tal:content="request/select" /></h2>
|
|
<p><a tal:attributes="href python: request.URL[-1]">
|
|
Back to overview</a></p>
|
|
<metal:listing use-macro="item/macros/listing" />
|
|
</metal:recent>
|
|
|
|
|
|
<metal:recent define-macro="recent_changes">
|
|
<metal:listing use-macro="item/macros/listing" />
|
|
</metal:recent>
|
|
|
|
|
|
<metal:recent define-macro="listing">
|
|
<table class="listing">
|
|
<tr>
|
|
<th i18n:translate="">Title</th>
|
|
<th i18n:translate="">Type</th>
|
|
<th i18n:translate=""
|
|
tal:condition="view/useVersioning">V</th>
|
|
<th i18n:translate="">User</th>
|
|
<th i18n:translate="">Date/Time</th>
|
|
<th i18n:translate=""
|
|
tal:condition="info/showNewColumn">New</th>
|
|
</tr>
|
|
<tr tal:repeat="row info/data"
|
|
tal:attributes="class python: repeat['row'].odd() and 'even' or 'odd'">
|
|
<tal:row define="object row/objectData;
|
|
url object/url"
|
|
condition="object/canAccess">
|
|
<td tal:attributes="title object/description">
|
|
<a tal:omit-tag="not:url"
|
|
tal:attributes="href string:$url?version=this"
|
|
tal:content="object/title" /></td>
|
|
<td tal:content="object/type"></td>
|
|
<tal:version tal:condition="view/useVersioning">
|
|
<td class="center"
|
|
tal:define="version object/version">
|
|
<a tal:omit-tag="python: version in ('1.1', '1', '')"
|
|
tal:attributes="href string:$url?loops.viewName=listversions"
|
|
tal:content="version">1.1</a>
|
|
</td>
|
|
</tal:version>
|
|
<td tal:define="url row/user/url">
|
|
<a tal:attributes="href url"
|
|
tal:omit-tag="not:url"
|
|
tal:content="row/user/title" /></td>
|
|
<td tal:content="row/timeStamp"></td>
|
|
<td class="center"
|
|
tal:condition="info/showNewColumn"
|
|
tal:content="row/markNew"></td>
|
|
</tal:row>
|
|
</tr>
|
|
</table>
|
|
</metal:recent>
|