Code

Added the "actor" property. Metakit backend not done (still not confident
[roundup.git] / templates / classic / html / issue.index.html
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/actor">Actor</th>
21    <th tal:condition="request/show/topic">Topic</th>
22    <th tal:condition="request/show/title">Title</th>
23    <th tal:condition="request/show/status">Status</th>
24    <th tal:condition="request/show/creator">Creator</th>
25    <th tal:condition="request/show/assignedto">Assigned&nbsp;To</th>
26   </tr>
27  <tal:block tal:repeat="i batch">
28   <tr tal:define="group python:request.group[1]"
29       tal:condition="python:group and batch.propchanged(group)">
30    <th tal:attributes="colspan python:len(request.columns)"
31        tal:content="python:str(i[group]) or '(no %s set)'%group" class="group">
32    </th>
33   </tr>
35   <tr>
36    <td tal:condition="request/show/priority"
37        tal:content="python:i.priority.plain() or default">&nbsp;</td>
38    <td tal:condition="request/show/id" tal:content="i/id">&nbsp;</td>
39    <td class="date" tal:condition="request/show/creation"
40        tal:content="i/creation/reldate">&nbsp;</td>
41    <td class="date" tal:condition="request/show/activity"
42        tal:content="i/activity/reldate">&nbsp;</td>
43    <td class="date" tal:condition="request/show/actor"
44        tal:content="python:i.actor.plain() or default">&nbsp;</td>
45    <td tal:condition="request/show/topic"
46        tal:content="python:i.topic.plain() or default">&nbsp;</td>
47    <td tal:condition="request/show/title">
48     <a tal:attributes="href string:issue${i/id}"
49                 tal:content="python:str(i.title.plain(hyperlink=0)) or '[no title]'">title</a>
50    </td>
51    <td tal:condition="request/show/status"
52        tal:content="python:i.status.plain() or default">&nbsp;</td>
53    <td tal:condition="request/show/creator"
54        tal:content="python:i.creator.plain() or default">&nbsp;</td>
55    <td tal:condition="request/show/assignedto"
56        tal:content="python:i.assignedto.plain() or default">&nbsp;</td>
57   </tr>
59  </tal:block>
61  <tr tal:condition="batch">
62   <th tal:attributes="colspan python:len(request.columns)">
63    <table width="100%">
64     <tr class="navigation">
65      <th>
66       <a tal:define="prev batch/previous" tal:condition="prev"
67          tal:attributes="href python:request.indexargs_href(request.classname,
68          {'@startwith':prev.first, '@pagesize':prev.size})">&lt;&lt; previous</a>
69       &nbsp;
70      </th>
71      <th tal:content="python: '%d...%d out of %d'%(batch.start,
72              batch.start+batch.length-1, batch.sequence_length)">current</th>
73      <th>
74       <a tal:define="next batch/next" tal:condition="next"
75          tal:attributes="href python:request.indexargs_href(request.classname,
76          {'@startwith':next.first, '@pagesize':next.size})">next &gt;&gt;</a>
77       &nbsp;
78      </th>
79     </tr>
80    </table>
81   </th>
82  </tr>
83 </table>
85 <form method="GET" id="index-controls" tal:attributes="action request/classname">
86  
87  <table class="form">
88   <tr tal:condition="batch">
89    <th>Sort on:</th>
90    <td>
91     <select name="@sort">
92      <option value="">- nothing -</option>
93      <option tal:repeat="col context/properties"
94              tal:attributes="value col/_name;
95                              selected python:col._name == request.sort[1]"
96              tal:content="col/_name">column</option>
97     </select>
98    </td>
99    <th>Descending:</th>
100    <td><input type="checkbox" name="@sortdir"
101               tal:attributes="checked python:request.sort[0] == '-'"> 
102    </td>
103   </tr>
104   <tr>
105    <th>Group on:</th>
106    <td>
107     <select name="@group">
108      <option value="">- nothing -</option>
109      <option tal:repeat="col context/properties"
110              tal:attributes="value col/_name;
111                              selected python:col._name == request.group[1]"
112              tal:content="col/_name">column</option>
113     </select>
114    </td>
115    <th>Descending:</th>
116    <td><input type="checkbox" name="@groupdir"
117               tal:attributes="checked python:request.group[0] == '-'"> 
118    </td>
119   </tr>
120   <tr><td colspan="4">
121               <input type="submit" value="Redisplay">
122               <tal:block tal:replace="structure
123                 python:request.indexargs_form(sort=0, group=0)" />
124   </td></tr>
125  </table>
126 </form>
128 </tal:block>
130 </td>
131 </tal:block>