Code

Move templates/ to share/roundup/templates/
[roundup.git] / share / roundup / templates / classic / html / issue.index.html
1 <!-- $Id: issue.index.html,v 1.29 2007-09-18 17:44:26 jpend Exp $ -->
2 <tal:block metal:use-macro="templates/page/macros/icing">
3 <title metal:fill-slot="head_title" >
4   <span tal:omit-tag="true" i18n:translate="" >List of issues</span>
5   <span tal:condition="request/dispname"
6    tal:replace="python:' - %s '%request.dispname"
7   /> - <span tal:replace="config/TRACKER_NAME" />
8 </title>
9 <span metal:fill-slot="body_title" tal:omit-tag="true">
10   <span tal:omit-tag="true" i18n:translate="" >List of issues</span>
11   <span tal:condition="request/dispname"
12    tal:replace="python:' - %s' % request.dispname" />
13 </span>
14 <td class="content" metal:fill-slot="content">
16 <p tal:condition="python:not (context.is_view_ok()
17  or request.user.hasRole('Anonymous'))" i18n:translate="">
18  You are not allowed to view this page.</p>
20 <p tal:condition="python:not context.is_view_ok()
21  and request.user.hasRole('Anonymous')" i18n:translate="">
22  Please login with your username and password.</p>
24 <tal:block tal:define="batch request/batch" tal:condition="context/is_view_ok">
25  <table class="list">
26   <tr>
27    <th tal:condition="request/show/priority" i18n:translate="">Priority</th>
28    <th tal:condition="request/show/id" i18n:translate="">ID</th>
29    <th tal:condition="request/show/creation" i18n:translate="">Creation</th>
30    <th tal:condition="request/show/activity" i18n:translate="">Activity</th>
31    <th tal:condition="request/show/actor" i18n:translate="">Actor</th>
32    <th tal:condition="request/show/keyword" i18n:translate="">Keyword</th>
33    <th tal:condition="request/show/title" i18n:translate="">Title</th>
34    <th tal:condition="request/show/status" i18n:translate="">Status</th>
35    <th tal:condition="request/show/creator" i18n:translate="">Creator</th>
36    <th tal:condition="request/show/assignedto" i18n:translate="">Assigned&nbsp;To</th>
37   </tr>
38  <tal:block tal:repeat="i batch" condition=true>
39   <tr tal:define="group python:[r[1] for r in request.group]"
40       tal:condition="python:group and batch.propchanged(*group)">
41    <th tal:attributes="colspan python:len(request.columns)" class="group">
42     <tal:block tal:repeat="g group">
43      <tal:block i18n:translate="" tal:content="python:str(i[g]) or '(no %s set)'%g"/>
44     </tal:block>
45    </th>
46   </tr>
48   <tr>
49    <td tal:condition="request/show/priority"
50        tal:content="python:i.priority.plain() or default">&nbsp;</td>
51    <td tal:condition="request/show/id" tal:content="i/id">&nbsp;</td>
52    <td class="date" tal:condition="request/show/creation"
53        tal:content="i/creation/reldate">&nbsp;</td>
54    <td class="date" tal:condition="request/show/activity"
55        tal:content="i/activity/reldate">&nbsp;</td>
56    <td class="date" tal:condition="request/show/actor"
57        tal:content="python:i.actor.plain() or default">&nbsp;</td>
58    <td tal:condition="request/show/keyword"
59        tal:content="python:i.keyword.plain() or default">&nbsp;</td>
60    <td tal:condition="request/show/title">
61     <a tal:attributes="href string:issue${i/id}"
62                 tal:content="python:str(i.title.plain(hyperlink=0)) or '[no title]'">title</a>
63    </td>
64    <td tal:condition="request/show/status"
65        i18n:translate=""
66        tal:content="python:i.status.plain() or default">&nbsp;</td>
67    <td tal:condition="request/show/creator"
68        tal:content="python:i.creator.plain() or default">&nbsp;</td>
69    <td tal:condition="request/show/assignedto"
70        tal:content="python:i.assignedto.plain() or default">&nbsp;</td>
71   </tr>
73  </tal:block>
75  <metal:index define-macro="batch-footer">
76  <tr tal:condition="batch">
77   <th tal:attributes="colspan python:len(request.columns)">
78    <table width="100%">
79     <tr class="navigation">
80      <th>
81       <a tal:define="prev batch/previous" tal:condition="prev"
82          tal:attributes="href python:request.indexargs_url(request.classname,
83          {'@startwith':prev.first, '@pagesize':prev.size})"
84          i18n:translate="">&lt;&lt; previous</a>
85       &nbsp;
86      </th>
87      <th i18n:translate=""><span tal:replace="batch/start" i18n:name="start"
88      />..<span tal:replace="python: batch.start + batch.length -1" i18n:name="end"
89      /> out of <span tal:replace="batch/sequence_length" i18n:name="total"
90      /></th>
91      <th>
92       <a tal:define="next batch/next" tal:condition="next"
93          tal:attributes="href python:request.indexargs_url(request.classname,
94          {'@startwith':next.first, '@pagesize':next.size})"
95          i18n:translate="">next &gt;&gt;</a>
96       &nbsp;
97      </th>
98     </tr>
99    </table>
100   </th>
101  </tr>
102  </metal:index>
103 </table>
105 <a tal:attributes="href python:request.indexargs_url('issue',
106             {'@action':'export_csv'})" i18n:translate="">Download as CSV</a>
108 <form method="GET" class="index-controls"
109     tal:attributes="action request/classname">
111  <table class="form" tal:define="n_sort python:2">
112   <tal:block tal:repeat="n python:range(n_sort)" tal:condition="batch">
113   <tr tal:define="key python:len(request.sort)>n and request.sort[n]">
114    <th>
115     <tal:block tal:condition="not:n" i18n:translate="">Sort on:</tal:block>
116    </th>
117    <td>
118     <select tal:attributes="name python:'@sort%d'%n">
119      <option value="" i18n:translate="">- nothing -</option>
120      <option tal:repeat="col context/properties"
121              tal:attributes="value col/_name;
122                              selected python:key and col._name == key[1]"
123              tal:content="col/_name"
124              i18n:translate="">column</option>
125     </select>
126    </td>
127    <th i18n:translate="">Descending:</th>
128    <td><input type="checkbox" tal:attributes="name python:'@sortdir%d'%n;
129               checked python:key and key[0] == '-'">
130    </td>
131   </tr>
132   </tal:block>
133   <tal:block tal:repeat="n python:range(n_sort)" tal:condition="batch">
134   <tr tal:define="key python:len(request.group)>n and request.group[n]">
135    <th>
136     <tal:block tal:condition="not:n" i18n:translate="">Group on:</tal:block>
137    </th>
138    <td>
139     <select tal:attributes="name python:'@group%d'%n">
140      <option value="" i18n:translate="">- nothing -</option>
141      <option tal:repeat="col context/properties"
142              tal:attributes="value col/_name;
143                              selected python:key and col._name == key[1]"
144              tal:content="col/_name"
145              i18n:translate="">column</option>
146     </select>
147    </td>
148    <th i18n:translate="">Descending:</th>
149    <td><input type="checkbox" tal:attributes="name python:'@groupdir%d'%n;
150               checked python:key and key[0] == '-'">
151    </td>
152   </tr>
153   </tal:block>
154   <tr><td colspan="4">
155               <input type="submit" value="Redisplay" i18n:attributes="value">
156               <tal:block tal:replace="structure
157                 python:request.indexargs_form(sort=0, group=0)" />
158   </td></tr>
159  </table>
160 </form>
162 </tal:block>
164 </td>
165 </tal:block><tal:comment condition=false> vim: sw=1 ts=8 et si
166 </tal:comment>