1 <!-- dollarId: issue.index,v 1.2 2001/07/29 04:07:37 richard Exp dollar-->
2 <tal:block tal:define="batch request/batch">
3 <table width="100%" border=0 cellspacing=0 cellpadding=2 class="list">
4 <tr class="list-header">
5 <th align="left" tal:condition="exists:request/columns/id">ID</th>
6 <th align="left" tal:condition="exists:request/columns/activity">Activity</th>
7 <th align="left" tal:condition="exists:request/columns/priority">Priority</th>
8 <th align="left" tal:condition="exists:request/columns/title">Title</th>
9 <th align="left" tal:condition="exists:request/columns/status">Status</th>
10 <th align="left" tal:condition="exists:request/columns/assignedto">Assigned To</th>
11 </tr>
12 <tr tal:repeat="i batch"
13 tal:attributes="class python:['row-normal', 'row-alt'][repeat['i'].even()]">
14 <td valign="top" tal:condition="exists:request/columns/id"
15 tal:content="i/id"></td>
16 <td valign="top" tal:condition="exists:request/columns/activity"
17 tal:content="i/activity/reldate"></td>
18 <td valign="top" tal:condition="exists:request/columns/priority"
19 tal:content="i/priority"></td>
20 <td valign="top" tal:condition="exists:request/columns/title">
21 <a tal:attributes="href string:issue${i/id}"
22 tal:content="python:i.title.value or '[no title]'">title</a>
23 </td>
24 <td valign="top" tal:condition="exists:request/columns/status"
25 tal:content="i/status"></td>
26 <td valign="top" tal:condition="exists:request/columns/assignedto"
27 tal:content="i/assignedto/username | default"></td>
28 </tr>
29 </table>
30 <table width="100%" border=0 cellspacing=0 cellpadding=2>
31 <tr class="list-header">
32 <td width="50%" align="left">
33 <a tal:define="prev batch/previous" tal:condition="prev"
34 tal:attributes="href python:request.indexargs_href(request.classname,
35 {':startwith':prev.start, ':pagesize':prev.size})"><< previous</a>
36 </td><td width="50%" align="right">
37 <a tal:define="next batch/next" tal:condition="next"
38 tal:attributes="href python:request.indexargs_href(request.classname,
39 {':startwith':next.start, ':pagesize':next.size})">next >></a>
40 </tr>
41 <tr class="list-header" tal:condition="batch">
42 <td colspan="2">
43 <form method="GET" tal:attributes="action request/classname">
44 <span tal:replace="structure request/indexargs_form" />
45 Pagesize: <input type="text" name=":pagesize" size="3" value="50">
46 Starting at: <input type="text" name=":startwith" size="3" value="0">
47 <input type="submit" value="Redisplay">
48 </form>
49 </td>
50 </tr>
51 </table>
52 </tal:block>