web/hosts/issues/html bug.index,1.2,1.3
Tobias Hunger <[email protected]> Wed, 20 Aug 2003 11:32:17 -0500
| Newsgroups | gmane.comp.video.fresco.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvs/fresco/web/hosts/issues/html
In directory purcel:/tmp/cvs-serv25938/html
Modified Files:
bug.index
Log Message:
Make everything that can be selected for display in bug.search actually
show up.
Index: bug.index
===================================================================
RCS file: /cvs/fresco/web/hosts/issues/html/bug.index,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- bug.index 11 Dec 2002 22:01:35 -0000 1.2
+++ bug.index 20 Aug 2003 16:32:13 -0000 1.3
@@ -3,100 +3,132 @@
<p class="header">List of bugs</p>
</tal:block>
-<tal:block metal:fill-slot="content">
+ <tal:block metal:fill-slot="content">
-<tal:block tal:define="batch request/batch">
- <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/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'].even()]">
- <td tal:condition="request/show/priority" tal:content="i/priority"></td>
- <td tal:condition="request/show/id" tal:content="i/id"></td>
- <td tal:condition="request/show/activity"
- tal:content="i/activity/reldate"></td>
- <td tal:condition="request/show/title">
- <a tal:attributes="href string:bug${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>
- <td style="padding: 0" tal:attributes="colspan python:len(request.columns)">
- <table class="list">
- <tr><th style="text-align: left; border: 0">
- <a tal:define="prev batch/previous" tal:condition="prev"
- tal:attributes="href python:request.indexargs_href(request.classname,
- {':startwith':prev.start, ':pagesize':prev.size})"><< previous</a>
-
- </th>
- <th style="text-align: right; border: 0">
- <a tal:define="next batch/next" tal:condition="next"
- tal:attributes="href python:request.indexargs_href(request.classname,
- {':startwith':next.start, ':pagesize':next.size})">next >></a>
-
- </th></tr>
- </table>
- </td>
- </tr>
-</table>
+ <tal:block tal:define="batch request/batch"
+ tal:condition="context/is_view_ok">
-<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>
- </table>
- <p><input type="submit" value="Redisplay"></p>
-</form>
+ <table class="list">
+ <tr>
+ <th tal:condition="request/show/priority">Priority</th>
+ <th tal:condition="request/show/severity">Severity</th>
+ <th tal:condition="request/show/id">ID</th>
+ <th tal:condition="request/show/creation">Creation</th>
+ <th tal:condition="request/show/activity">Activity</th>
+ <th tal:condition="request/show/topics">Topic</th>
+ <th tal:condition="request/show/bug_type">Bug Type</th>
+ <th tal:condition="request/show/title">Title</th>
+ <th tal:condition="request/show/components">Component</th>
+ <th tal:condition="request/show/platforms">Platform</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:block>
-</tal:block>
+ <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'].even()]">
+ <td tal:condition="request/show/priority"
+ tal:content="python:i.priority.plain() or default"> </td>
+ <td tal:condition="request/show/severity"
+ tal:content="python:i.severity.plain() or default"> </td>
+ <td tal:condition="request/show/id" tal:content="i/id"> </td>
+ <td nowrap tal:condition="request/show/creation"
+ tal:content="i/creation/reldate"> </td>
+ <td tal:condition="request/show/activity"
+ tal:content="i/activity/reldate"> </td>
+ <td tal:condition="request/show/topics"
+ tal:content="i/topics"> </td>
+ <td tal:condition="request/show/bug_type"
+ tal:content="i/bug_type"> </td>
+ <td tal:condition="request/show/title">
+ <a tal:attributes="href string:bug${i/id}"
+ tal:content="python:str(i.title) or '[no title]'">title</a>
+ </td>
+ <td tal:condition="request/show/components"
+ tal:content="i/components"> </td>
+ <td tal:condition="request/show/platforms"
+ tal:content="i/platforms"> </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 tal:condition="batch">
+ <th tal:attributes="colspan python:len(request.columns)">
+ <table width="100%">
+ <tr class="navigation">
+ <th>
+ <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:content="python: '%d...%d out of %d'%(batch.start,
+ batch.start+batch.length-1, batch.sequence_length)">current</th>
+ <th>
+ <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>
+ </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>
+ </tal:block>
+</tal:block>