
git-svn-id: svn://svn.cy55.de/Zope3/src/loops/trunk@4061 fd906abe-77d9-0310-91a1-e0d9ade77398
58 lines
2.2 KiB
XML
58 lines
2.2 KiB
XML
<html i18n:domain="loops">
|
|
|
|
|
|
<metal:resources define-macro="versions">
|
|
<div tal:attributes="class string:content-$level;
|
|
ondblclick python: item.openEditWindow('resources.html')"
|
|
tal:define="versions python: list(item.versions())"
|
|
tal:condition="versions">
|
|
<h1 i18n:translate="" tal:content="item/title">Title</h1>
|
|
<h2 i18n:translate="">Versions</h2><br />
|
|
<table class="listing">
|
|
<tr>
|
|
<th i18n:translate="">Title</th>
|
|
<th i18n:translate="">Type</th>
|
|
<th i18n:translate="">V</th>
|
|
<th i18n:translate="">Size</th>
|
|
<th i18n:translate="">Modification Date</th>
|
|
</tr>
|
|
<tal:items repeat="related versions">
|
|
<tal:item define="class python: repeat['related'].odd() and 'even' or 'odd';
|
|
description related/description">
|
|
<tr tal:attributes="class class">
|
|
<td valign="top">
|
|
<a href="#"
|
|
tal:define="url python: view.getUrlForTarget(related)"
|
|
tal:attributes="href string:$url?version=this;
|
|
title description">
|
|
<span tal:replace="related/title">Resource Title</span>
|
|
</a>
|
|
</td>
|
|
<td><span tal:replace="related/longTypeTitle">Type</span></td>
|
|
<td style="text-align: center">
|
|
<span tal:replace="related/versionId">1.1</span>
|
|
</td>
|
|
<td style="text-align: right">
|
|
<span tal:replace="related/context/sizeForDisplay">Type</span>
|
|
</td>
|
|
<td><span tal:replace="related/modified">Type</span></td>
|
|
</tr>
|
|
</tal:item>
|
|
</tal:items>
|
|
</table>
|
|
</div>
|
|
</metal:resources>
|
|
|
|
|
|
<!-- portlets -->
|
|
|
|
<metal:versions define-macro="portlet_versions">
|
|
<div tal:condition="view/showVersions|python:True">
|
|
<a tal:attributes="href string:${view/url}/.${macro/info/uniqueId}?loops.viewName=listversions">
|
|
<span i18n:translate="">All versions</span>
|
|
</a>
|
|
</div>
|
|
</metal:versions>
|
|
|
|
|
|
</html>
|