diff templates/classic/html/file.index.html @ 3126:a2889d22db4a

the cgi templating code now checks item-level permissions (per alex's suggestion). The templates themselves do not have row-level checks now. Cleaned up the msg and file index templates to use batching.
author Richard Jones <richard@users.sourceforge.net>
date Fri, 04 Feb 2005 05:25:50 +0000
parents 460eb0209a9e
children
line wrap: on
line diff
--- a/templates/classic/html/file.index.html	Fri Jan 28 05:09:44 2005 +0000
+++ b/templates/classic/html/file.index.html	Fri Feb 04 05:25:50 2005 +0000
@@ -6,24 +6,24 @@
   i18n:translate="">List of files</span>
 <td class="content" metal:fill-slot="content">
 
-<table class="otherinfo">
-<tr><th style="padding-right: 10" i18n:translate="">Download</th>
-    <th style="padding-right: 10" i18n:translate="">Content Type</th>
-    <th style="padding-right: 10" i18n:translate="">Uploaded By</th>
-    <th style="padding-right: 10" i18n:translate="">Date</th>
-</tr>
- <tal:block repeat="file context/list">
- <tr tal:condition="file/is_view_ok"
-     tal:attributes="class python:['normal', 'alt'][repeat['file'].index%6/3]">
- <td>
-  <a tal:attributes="href string:file${file/id}/${file/name}"
-     tal:content="file/name">dld link</a>
- </td>
- <td tal:content="file/type">content type</td>
- <td tal:content="file/creator">creator's name</td>
- <td tal:content="file/creation">creation date</td>
+<table class="otherinfo" tal:define="batch request/batch">
+ <tr><th style="padding-right: 10" i18n:translate="">Download</th>
+     <th style="padding-right: 10" i18n:translate="">Content Type</th>
+     <th style="padding-right: 10" i18n:translate="">Uploaded By</th>
+     <th style="padding-right: 10" i18n:translate="">Date</th>
  </tr>
- </tal:block>
+ <tr tal:repeat="file batch" tal:attributes="class python:['normal', 'alt'][repeat['file'].index%6/3]">
+  <td>
+   <a tal:attributes="href string:file${file/id}/${file/name}"
+      tal:content="file/name">dld link</a>
+  </td>
+  <td tal:content="file/type">content type</td>
+  <td tal:content="file/creator">creator's name</td>
+  <td tal:content="file/creation">creation date</td>
+ </tr>
+
+ <metal:block use-macro="templates/issue.index/macros/batch-footer" />
+
 </table>
 
 </td>

Roundup Issue Tracker: http://roundup-tracker.org/