diff --git a/roundup/templates/classic/html/issue.index b/roundup/templates/classic/html/issue.index
index 60bc4d7e3b785feb39d4c3389b5d3297b61da114..1c15ac4346e0cedb9e4e7a353ca6bb1ad212171d 100644 (file)
-<!-- $Id: issue.index,v 1.2 2001-07-29 04:07:37 richard Exp $-->
-<tr class="row-<display call="plain('status')">">
- <property name="id">
- <td valign="top"><display call="plain('id')"></td>
- </property>
- <property name="activity">
- <td valign="top"><display call="reldate('activity', pretty=1)"></td>
- </property>
- <property name="priority">
- <td valign="top"><display call="plain('priority')"></td>
- </property>
- <property name="title">
- <td valign="top"><display call="link('title')"></td>
- </property>
- <property name="status">
- <td valign="top"><display call="plain('status')"></td>
- </property>
- <property name="assignedto">
- <td valign="top"><display call="link('assignedto')"></td>
- </property>
-</tr>
+<!-- dollarId: issue.index,v 1.2 2001/07/29 04:07:37 richard Exp dollar-->
+<tal:block metal:use-macro="templates/page/macros/icing">
+<title metal:fill-slot="head_title">List of issues</title>
+<td class="page-header-top" metal:fill-slot="body_title">
+ <h2>List of issues</h2>
+</td>
+<td class="content" metal:fill-slot="content">
+
+<tal:block tal:condition="not:context/is_view_ok">
+You are not allowed to view this page.
+</tal:block>
+
+<tal:block tal:define="batch request/batch" tal:condition="context/is_view_ok">
+ <table class="list">
+ <tr>
+ <th tal:condition="request/show/priority">Priority</th>
+ <th tal:condition="request/show/id">ID</th>
+ <th tal:condition="request/show/activity">Activity</th>
+ <th tal:condition="request/show/topic">Topic</th>
+ <th tal:condition="request/show/title">Title</th>
+ <th tal:condition="request/show/status">Status</th>
+ <th tal:condition="request/show/creator">Created By</th>
+ <th tal:condition="request/show/assignedto">Assigned To</th>
+ </tr>
+ <tal:block tal:repeat="i batch">
+ <tr tal:condition="python:request.group[1] and
+ batch.propchanged(request.group[1])">
+ <th tal:attributes="colspan python:len(request.columns)"
+ tal:content="python:i[request.group[1]]" class="group">
+ </th>
+ </tr>
+ <tr tal:attributes="class python:['normal', 'alt'][repeat['i'].index%6/3]">
+ <td tal:condition="request/show/priority" tal:content="i/priority"></td>
+ <td tal:condition="request/show/id" tal:content="i/id"></td>
+ <td nowrap tal:condition="request/show/activity"
+ tal:content="i/activity/reldate"></td>
+ <td tal:condition="request/show/topic" tal:content="i/topic"></td>
+ <td tal:condition="request/show/title">
+ <a tal:attributes="href string:issue${i/id}"
+ tal:content="python:str(i.title) or '[no title]'">title</a>
+ </td>
+ <td tal:condition="request/show/status" tal:content="i/status"></td>
+ <td tal:condition="request/show/creator" tal:content="i/creator"></td>
+ <td tal:condition="request/show/assignedto" tal:content="i/assignedto"></td>
+ </tr>
+ </tal:block>
+ <tr class="navigation" tal:define="colspan python:len(request.columns)">
+ <th tal:attributes="colspan python:colspan/2">
+ <a tal:define="prev batch/previous" tal:condition="prev"
+ tal:attributes="href python:request.indexargs_href(request.classname,
+ {':startwith':prev.first, ':pagesize':prev.size})"><< previous</a>
+
+ </th>
+ <th tal:attributes="colspan python:colspan/2 + colspan%2">
+ <a tal:define="next batch/next" tal:condition="next"
+ tal:attributes="href python:request.indexargs_href(request.classname,
+ {':startwith':next.first, ':pagesize':next.size})">next >></a>
+
+ </th>
+ </tr>
+</table>
+
+<form method="GET" tal:attributes="action request/classname">
+ <tal:block tal:replace="structure python:request.indexargs_form(sort=0, group=0)" />
+ <table class="form">
+ <tr tal:condition="batch">
+ <th>Sort on:</th>
+ <td>
+ <select name=":sort">
+ <option value="">- nothing -</option>
+ <option tal:repeat="col context/properties"
+ tal:attributes="value col/_name;
+ selected python:col._name == request.sort[1]"
+ tal:content="col/_name">column</option>
+ </select>
+ </td>
+ <th>Descending:</th>
+ <td><input type="checkbox" name=":sortdir"
+ tal:attributes="checked python:request.sort[0] == '-'">
+ </td>
+ </tr>
+ <tr>
+ <th>Group on:</th>
+ <td>
+ <select name=":group">
+ <option value="">- nothing -</option>
+ <option tal:repeat="col context/properties"
+ tal:attributes="value col/_name;
+ selected python:col._name == request.group[1]"
+ tal:content="col/_name">column</option>
+ </select>
+ </td>
+ <th>Descending:</th>
+ <td><input type="checkbox" name=":groupdir"
+ tal:attributes="checked python:request.group[0] == '-'">
+ </td>
+ </tr>
+ <tr><td colspan="4"><input type="submit" value="Redisplay"></td></tr>
+ </table>
+</form>
+
+</tal:block>
+
+</td>
+</tal:block>
+