6c2ced4cbd773cefadc885a5c845213c5262cbc9
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 <td class="page-header-top" metal:fill-slot="body_title">
7 <h2>List of issues</h2>
8 </td>
9 <td class="content" metal:fill-slot="content">
11 <tal:block tal:condition="not:context/is_view_ok">
12 You are not allowed to view this page.
13 </tal:block>
15 <tal:block tal:define="batch request/batch" tal:condition="context/is_view_ok">
16 <table class="list">
17 <tr>
18 <th tal:condition="request/show/priority">Priority</th>
19 <th tal:condition="request/show/id">ID</th>
20 <th tal:condition="request/show/creation">Creation</th>
21 <th tal:condition="request/show/activity">Activity</th>
22 <th tal:condition="request/show/topic">Topic</th>
23 <th tal:condition="request/show/title">Title</th>
24 <th tal:condition="request/show/status">Status</th>
25 <th tal:condition="request/show/creator">Created By</th>
26 <th tal:condition="request/show/assignedto">Assigned To</th>
27 </tr>
28 <tal:block tal:repeat="i batch">
29 <tr tal:condition="python:request.group[1] and
30 batch.propchanged(request.group[1])">
31 <th tal:attributes="colspan python:len(request.columns)"
32 tal:content="python:i[request.group[1]]" class="group">
33 </th>
34 </tr>
35 <tr tal:attributes="class python:['normal', 'alt'][repeat['i'].index%6/3]">
36 <td tal:condition="request/show/priority" tal:content="i/priority"></td>
37 <td tal:condition="request/show/id" tal:content="i/id"></td>
38 <td nowrap tal:condition="request/show/creation"
39 tal:content="i/creation/reldate"></td>
40 <td nowrap tal:condition="request/show/activity"
41 tal:content="i/activity/reldate"></td>
42 <td tal:condition="request/show/topic" tal:content="i/topic"></td>
43 <td tal:condition="request/show/title">
44 <a tal:attributes="href string:issue${i/id}"
45 tal:content="python:str(i.title.plain(hyperlink=0)) or '[no title]'">title</a>
46 </td>
47 <td tal:condition="request/show/status" tal:content="i/status"></td>
48 <td tal:condition="request/show/creator" tal:content="i/creator"></td>
49 <td tal:condition="request/show/assignedto" tal:content="i/assignedto"></td>
50 </tr>
51 </tal:block>
52 <tr class="navigation" tal:define="colspan python:len(request.columns)">
53 <th tal:attributes="colspan python:colspan/2">
54 <a tal:define="prev batch/previous" tal:condition="prev"
55 tal:attributes="href python:request.indexargs_href(request.classname,
56 {':startwith':prev.first, ':pagesize':prev.size})"><< previous</a>
57
58 </th>
59 <th tal:attributes="colspan python:colspan/2 + colspan%2">
60 <a tal:define="next batch/next" tal:condition="next"
61 tal:attributes="href python:request.indexargs_href(request.classname,
62 {':startwith':next.first, ':pagesize':next.size})">next >></a>
63
64 </th>
65 </tr>
66 </table>
68 <form method="GET" tal:attributes="action request/classname">
69 <tal:block tal:replace="structure python:request.indexargs_form(sort=0, group=0)" />
70 <table class="form">
71 <tr tal:condition="batch">
72 <th>Sort on:</th>
73 <td>
74 <select name=":sort">
75 <option value="">- nothing -</option>
76 <option tal:repeat="col context/properties"
77 tal:attributes="value col/_name;
78 selected python:col._name == request.sort[1]"
79 tal:content="col/_name">column</option>
80 </select>
81 </td>
82 <th>Descending:</th>
83 <td><input type="checkbox" name=":sortdir"
84 tal:attributes="checked python:request.sort[0] == '-'">
85 </td>
86 </tr>
87 <tr>
88 <th>Group on:</th>
89 <td>
90 <select name=":group">
91 <option value="">- nothing -</option>
92 <option tal:repeat="col context/properties"
93 tal:attributes="value col/_name;
94 selected python:col._name == request.group[1]"
95 tal:content="col/_name">column</option>
96 </select>
97 </td>
98 <th>Descending:</th>
99 <td><input type="checkbox" name=":groupdir"
100 tal:attributes="checked python:request.group[0] == '-'">
101 </td>
102 </tr>
103 <tr><td colspan="4"><input type="submit" value="Redisplay"></td></tr>
104 </table>
105 </form>
107 </tal:block>
109 </td>
110 </tal:block>