provide 'size' column for resource listings
git-svn-id: svn://svn.cy55.de/Zope3/src/loops/trunk@1619 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
parent
e4c18683e5
commit
ee5586ce3f
2 changed files with 12 additions and 6 deletions
|
@ -85,10 +85,10 @@
|
||||||
<h2>Resources</h2><br />
|
<h2>Resources</h2><br />
|
||||||
<table class="listing">
|
<table class="listing">
|
||||||
<tr>
|
<tr>
|
||||||
<th>Title</th>
|
<th i18n:translate="label_title">Title</th>
|
||||||
<th>Type</th>
|
<th i18n:translate="label_type">Type</th>
|
||||||
<th>Size</th>
|
<th i18n:translate="label_size">Size</th>
|
||||||
<th>Modification Date</th>
|
<th i18n:translate="label_modifdate">Modification Date</th>
|
||||||
</tr>
|
</tr>
|
||||||
<tal:items repeat="related resources">
|
<tal:items repeat="related resources">
|
||||||
<tal:item define="class python: repeat['related'].odd() and 'even' or 'odd'">
|
<tal:item define="class python: repeat['related'].odd() and 'even' or 'odd'">
|
||||||
|
@ -100,7 +100,9 @@
|
||||||
</a>
|
</a>
|
||||||
</td>
|
</td>
|
||||||
<td><span tal:replace="related/typeTitle">Type</span></td>
|
<td><span tal:replace="related/typeTitle">Type</span></td>
|
||||||
<td><span tal:replace="related/context/sizeForDisplay">Type</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>
|
<td><span tal:replace="related/modified">Type</span></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr tal:define="description related/description"
|
<tr tal:define="description related/description"
|
||||||
|
|
|
@ -50,6 +50,7 @@
|
||||||
<tr>
|
<tr>
|
||||||
<th i18n:translate="label_title">Title</th>
|
<th i18n:translate="label_title">Title</th>
|
||||||
<th i18n:translate="label_type">Type</th>
|
<th i18n:translate="label_type">Type</th>
|
||||||
|
<th i18n:translate="label_size">Size</th>
|
||||||
<th i18n:translate="label_modifdate">Modification Date</th>
|
<th i18n:translate="label_modifdate">Modification Date</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
@ -62,7 +63,10 @@
|
||||||
tal:content="row/title" />
|
tal:content="row/title" />
|
||||||
</td>
|
</td>
|
||||||
<td tal:content="row/typeTitle">Type</td>
|
<td tal:content="row/typeTitle">Type</td>
|
||||||
<td><span tal:replace="row/modified">Type</span></td>
|
<td style="text-align: right">
|
||||||
|
<span tal:replace="row/context/sizeForDisplay|string:">Size</span>
|
||||||
|
</td>
|
||||||
|
<td><span tal:replace="row/modified">modified</span></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr tal:define="description row/description"
|
<tr tal:define="description row/description"
|
||||||
tal:condition="description"
|
tal:condition="description"
|
||||||
|
|
Loading…
Add table
Reference in a new issue