586ea721b8960b2a181dae44e8c513e46f97f2bd
1 <!-- dollarId: issue.index,v 1.2 2001/07/29 04:07:37 richard Exp dollar-->
2 <tal:block metal:use-macro="templates/page/macros/icing">
3 <title metal:fill-slot="head_title">
4 <span tal:replace="config/TRACKER_NAME" />: List of issues
5 </title>
6 <span metal:fill-slot="body_title" tal:omit-tag="python:1">List of issues</span>
7 <td class="content" metal:fill-slot="content">
9 <tal:block tal:condition="not:context/is_view_ok">
10 You are not allowed to view this page.
11 </tal:block>
13 <tal:block tal:define="batch request/batch" tal:condition="context/is_view_ok">
14 <table class="list">
15 <tr>
16 <th tal:condition="request/show/priority">Priority</th>
17 <th tal:condition="request/show/id">ID</th>
18 <th tal:condition="request/show/creation">Creation</th>
19 <th tal:condition="request/show/activity">Activity</th>
20 <th tal:condition="request/show/topic">Topic</th>
21 <th tal:condition="request/show/title">Title</th>
22 <th tal:condition="request/show/status">Status</th>
23 <th tal:condition="request/show/creator">Created By</th>
24 <th tal:condition="request/show/assignedto">Assigned To</th>
25 </tr>
26 <tal:block tal:repeat="i batch">
27 <tr tal:condition="python:request.group[1] and
28 batch.propchanged(request.group[1])">
29 <th tal:attributes="colspan python:len(request.columns)"
30 tal:content="python:i[request.group[1]]" class="group">
31 </th>
32 </tr>
34 <tr>
35 <td tal:condition="request/show/priority"
36 tal:content="python:i.priority.plain() or default"> </td>
37 <td tal:condition="request/show/id" tal:content="i/id"> </td>
38 <td class="date" tal:condition="request/show/creation"
39 tal:content="i/creation/reldate"> </td>
40 <td class="date" tal:condition="request/show/activity"
41 tal:content="i/activity/reldate"> </td>
42 <td tal:condition="request/show/topic"
43 tal:content="python:i.topic.plain() or default"> </td>
44 <td tal:condition="request/show/title">
45 <a tal:attributes="href string:issue${i/id}"
46 tal:content="python:str(i.title.plain(hyperlink=0)) or '[no title]'">title</a>
47 </td>
48 <td tal:condition="request/show/status"
49 tal:content="python:i.status.plain() or default"> </td>
50 <td tal:condition="request/show/creator"
51 tal:content="python:i.creator.plain() or default"> </td>
52 <td tal:condition="request/show/assignedto"
53 tal:content="python:i.assignedto.plain() or default"> </td>
54 </tr>
56 </tal:block>
58 <tr tal:condition="batch">
59 <th tal:attributes="colspan python:len(request.columns)">
60 <table width="100%">
61 <tr class="navigation">
62 <th>
63 <a tal:define="prev batch/previous" tal:condition="prev"
64 tal:attributes="href python:request.indexargs_href(request.classname,
65 {'@startwith':prev.first, '@pagesize':prev.size})"><< previous</a>
66
67 </th>
68 <th tal:content="python: '%d...%d out of %d'%(batch.start,
69 batch.start+batch.length-1, batch.sequence_length)">current</th>
70 <th>
71 <a tal:define="next batch/next" tal:condition="next"
72 tal:attributes="href python:request.indexargs_href(request.classname,
73 {'@startwith':next.first, '@pagesize':next.size})">next >></a>
74
75 </th>
76 </tr>
77 </table>
78 </th>
79 </tr>
80 </table>
82 <form method="GET" id="index-controls" tal:attributes="action request/classname">
84 <table class="form">
85 <tr tal:condition="batch">
86 <th>Sort on:</th>
87 <td>
88 <select name="@sort">
89 <option value="">- nothing -</option>
90 <option tal:repeat="col context/properties"
91 tal:attributes="value col/_name;
92 selected python:col._name == request.sort[1]"
93 tal:content="col/_name">column</option>
94 </select>
95 </td>
96 <th>Descending:</th>
97 <td><input type="checkbox" name="@sortdir"
98 tal:attributes="checked python:request.sort[0] == '-'">
99 </td>
100 </tr>
101 <tr>
102 <th>Group on:</th>
103 <td>
104 <select name="@group">
105 <option value="">- nothing -</option>
106 <option tal:repeat="col context/properties"
107 tal:attributes="value col/_name;
108 selected python:col._name == request.group[1]"
109 tal:content="col/_name">column</option>
110 </select>
111 </td>
112 <th>Descending:</th>
113 <td><input type="checkbox" name="@groupdir"
114 tal:attributes="checked python:request.group[0] == '-'">
115 </td>
116 </tr>
117 <tr><td colspan="4">
118 <input type="submit" value="Redisplay">
119 <tal:block tal:replace="structure
120 python:request.indexargs_form(sort=0, group=0)" />
121 </td></tr>
122 </table>
123 </form>
125 </tal:block>
127 </td>
128 </tal:block>