diff templates/classic/html/msg.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/msg.index.html	Fri Jan 28 05:09:44 2005 +0000
+++ b/templates/classic/html/msg.index.html	Fri Feb 04 05:25:50 2005 +0000
@@ -5,10 +5,9 @@
 <span metal:fill-slot="body_title" tal:omit-tag="python:1"
  i18n:translate="">Message listing</span>
 <td class="content" metal:fill-slot="content">
-<table class="messages" tal:condition="request/filter">
+<table tal:define="batch request/batch" class="messages">
  <tr><th colspan=2 class="header" i18n:translate="">Messages</th></tr>
- <tal:block tal:repeat="msg context/list">
- <tal:block tal:condition="msg/is_view_ok">
+ <tal:block tal:repeat="msg batch">
   <tr>
    <th tal:content="string:Author: ${msg/author}">author</th>
    <th tal:content="string:Date: ${msg/date}">date</th>
@@ -17,7 +16,9 @@
    <td colspan="2"><pre tal:content="msg/content">content</pre></td>
   </tr>
  </tal:block>
- </tal:block>
+
+ <metal:block use-macro="templates/issue.index/macros/batch-footer" />
+
 </table>
 </td>
 

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