diff templates/classic/html/issue.index.html @ 1635:b0ffb474716e

nicer index navigation
author Richard Jones <richard@users.sourceforge.net>
date Fri, 09 May 2003 03:43:22 +0000
parents 126d4d0ac89b
children 24819ee5dfbc
line wrap: on
line diff
--- a/templates/classic/html/issue.index.html	Fri May 09 03:32:41 2003 +0000
+++ b/templates/classic/html/issue.index.html	Fri May 09 03:43:22 2003 +0000
@@ -56,18 +56,27 @@
   </tr>
 
  </tal:block>
- <tr class="navigation" tal:define="colspan python:len(request.columns)">
-  <th tal:attributes="colspan python:colspan/2">
-   <a tal:define="prev batch/previous" tal:condition="prev"
-      tal:attributes="href python:request.indexargs_url(request.classname,
-      {':startwith':prev.first, ':pagesize':prev.size})">&lt;&lt; previous</a>
-   &nbsp;
-  </th>
-  <th tal:attributes="colspan python:colspan/2 + colspan%2">
-   <a tal:define="next batch/next" tal:condition="next"
-      tal:attributes="href python:request.indexargs_url(request.classname,
-      {':startwith':next.first, ':pagesize':next.size})">next &gt;&gt;</a>
-   &nbsp;
+
+ <tr tal:condition="batch">
+  <th tal:attributes="colspan python:len(request.columns)">
+   <table width="100%">
+    <tr class="navigation">
+     <th>
+      <a tal:define="prev batch/previous" tal:condition="prev"
+         tal:attributes="href python:request.indexargs_href(request.classname,
+         {':startwith':prev.first, ':pagesize':prev.size})">&lt;&lt; previous</a>
+      &nbsp;
+     </th>
+     <th tal:content="python: '%d...%d out of %d'%(batch.start,
+             batch.start+batch.length-1, batch.sequence_length)">current</th>
+     <th>
+      <a tal:define="next batch/next" tal:condition="next"
+         tal:attributes="href python:request.indexargs_href(request.classname,
+         {':startwith':next.first, ':pagesize':next.size})">next &gt;&gt;</a>
+      &nbsp;
+     </th>
+    </tr>
+   </table>
   </th>
  </tr>
 </table>

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