Mercurial > p > roundup > code
view roundup/templates/classic/html/issue.index @ 1002:1798d2fa9fec
Hack hack...
. Lots of cleanup in the classic html (stylesheet, search page, index page, ...)
. Reinstated searching, but not query saving yet
. Filtering only allows sorting and grouping by one property - all backends
now implement this behaviour.
. Nosy list journalling turned off by default, everything else is on.
. Added some convenience methods (reverse, propchanged, [item] accesses, ...)
. Did I mention the stylesheet is much cleaner now? :)
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Sun, 01 Sep 2002 04:32:30 +0000 |
| parents | d9943245db26 |
| children | f89b8d32291b |
line wrap: on
line source
<!-- dollarId: issue.index,v 1.2 2001/07/29 04:07:37 richard Exp dollar--> <tal:block tal:define="batch request/batch"> <table class="list"> <tr> <th tal:condition="exists:request/columns/priority">Priority</th> <th tal:condition="exists:request/columns/id">ID</th> <th tal:condition="exists:request/columns/activity">Activity</th> <th tal:condition="exists:request/columns/title">Title</th> <th tal:condition="exists:request/columns/status">Status</th> <th tal:condition="exists:request/columns/creator">Created By</th> <th tal:condition="exists:request/columns/assignedto">Assigned To</th> </tr> <tal:block tal:repeat="i batch"> <tr tal:condition="python: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="exists:request/columns/priority" tal:content="i/priority"></td> <td tal:condition="exists:request/columns/id" tal:content="i/id"></td> <td tal:condition="exists:request/columns/activity" tal:content="i/activity/reldate"></td> <td tal:condition="exists:request/columns/title"> <a tal:attributes="href string:issue${i/id}" tal:content="python:i.title.value or '[no title]'">title</a> </td> <td tal:condition="exists:request/columns/status" tal:content="i/status"></td> <td tal:condition="exists:request/columns/creator" tal:content="i/creator"></td> <td tal:condition="exists:request/columns/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"> <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"> <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> <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 python:request.columns.keys()" tal:attributes="value col; selected python:col == request.sort[1]" tal:content="col">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 python:request.columns.keys()" tal:attributes="value col; selected python:col == request.group[1]" tal:content="col">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>
