annotate templates/classic/html/issue.index.html @ 2077:3e0961d6d44d

Added the "actor" property. Metakit backend not done (still not confident I know how it's supposed to work ;) Currently it will come up as NULL in the RDBMS backends for older items. The *dbm backends will look up the journal. I hope to remedy the former before 0.7's release. Fixed a bunch of migration issues in the rdbms backends while I was at it (index changes for key prop changes) and simplified the class table update code for RDBMSes that have "alter table" in their command set (ie. not sqlite) ... migration from "version 1" to "version 2" still hasn't actually been tested yet though.
author Richard Jones <richard@users.sourceforge.net>
date Mon, 15 Mar 2004 05:50:20 +0000
parents b1704ba7be41
children b86f0627b07c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1591
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
1 <!-- dollarId: issue.index,v 1.2 2001/07/29 04:07:37 richard Exp dollar-->
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
2 <tal:block metal:use-macro="templates/page/macros/icing">
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
3 <title metal:fill-slot="head_title">
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
4 <span tal:replace="config/TRACKER_NAME" />: List of issues
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
5 </title>
1976
3a4abf6d48c2 body_title improvement
Richard Jones <richard@users.sourceforge.net>
parents: 1911
diff changeset
6 <span metal:fill-slot="body_title" tal:omit-tag="python:1">List of issues</span>
1591
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
7 <td class="content" metal:fill-slot="content">
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
8
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
9 <tal:block tal:condition="not:context/is_view_ok">
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
10 You are not allowed to view this page.
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
11 </tal:block>
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
12
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
13 <tal:block tal:define="batch request/batch" tal:condition="context/is_view_ok">
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
14 <table class="list">
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
15 <tr>
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
16 <th tal:condition="request/show/priority">Priority</th>
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
17 <th tal:condition="request/show/id">ID</th>
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
18 <th tal:condition="request/show/creation">Creation</th>
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
19 <th tal:condition="request/show/activity">Activity</th>
2077
3e0961d6d44d Added the "actor" property.
Richard Jones <richard@users.sourceforge.net>
parents: 2075
diff changeset
20 <th tal:condition="request/show/actor">Actor</th>
1591
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
21 <th tal:condition="request/show/topic">Topic</th>
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
22 <th tal:condition="request/show/title">Title</th>
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
23 <th tal:condition="request/show/status">Status</th>
2077
3e0961d6d44d Added the "actor" property.
Richard Jones <richard@users.sourceforge.net>
parents: 2075
diff changeset
24 <th tal:condition="request/show/creator">Creator</th>
1591
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
25 <th tal:condition="request/show/assignedto">Assigned&nbsp;To</th>
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
26 </tr>
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
27 <tal:block tal:repeat="i batch">
2075
b1704ba7be41 make mysql / postgresql work again. beginnings of otk/session store in rdbmses
Richard Jones <richard@users.sourceforge.net>
parents: 1976
diff changeset
28 <tr tal:define="group python:request.group[1]"
b1704ba7be41 make mysql / postgresql work again. beginnings of otk/session store in rdbmses
Richard Jones <richard@users.sourceforge.net>
parents: 1976
diff changeset
29 tal:condition="python:group and batch.propchanged(group)">
1591
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
30 <th tal:attributes="colspan python:len(request.columns)"
2075
b1704ba7be41 make mysql / postgresql work again. beginnings of otk/session store in rdbmses
Richard Jones <richard@users.sourceforge.net>
parents: 1976
diff changeset
31 tal:content="python:str(i[group]) or '(no %s set)'%group" class="group">
1591
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
32 </th>
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
33 </tr>
1625
126d4d0ac89b under the heading of "questionable whether it's a fix or not"
Richard Jones <richard@users.sourceforge.net>
parents: 1591
diff changeset
34
126d4d0ac89b under the heading of "questionable whether it's a fix or not"
Richard Jones <richard@users.sourceforge.net>
parents: 1591
diff changeset
35 <tr>
126d4d0ac89b under the heading of "questionable whether it's a fix or not"
Richard Jones <richard@users.sourceforge.net>
parents: 1591
diff changeset
36 <td tal:condition="request/show/priority"
126d4d0ac89b under the heading of "questionable whether it's a fix or not"
Richard Jones <richard@users.sourceforge.net>
parents: 1591
diff changeset
37 tal:content="python:i.priority.plain() or default">&nbsp;</td>
126d4d0ac89b under the heading of "questionable whether it's a fix or not"
Richard Jones <richard@users.sourceforge.net>
parents: 1591
diff changeset
38 <td tal:condition="request/show/id" tal:content="i/id">&nbsp;</td>
1825
fad32dafc174 Replaced all uses of the 'nowrap' attribute with its CSS equivalent:
Johannes Gijsbers <jlgijsbers@users.sourceforge.net>
parents: 1824
diff changeset
39 <td class="date" tal:condition="request/show/creation"
1625
126d4d0ac89b under the heading of "questionable whether it's a fix or not"
Richard Jones <richard@users.sourceforge.net>
parents: 1591
diff changeset
40 tal:content="i/creation/reldate">&nbsp;</td>
1825
fad32dafc174 Replaced all uses of the 'nowrap' attribute with its CSS equivalent:
Johannes Gijsbers <jlgijsbers@users.sourceforge.net>
parents: 1824
diff changeset
41 <td class="date" tal:condition="request/show/activity"
1625
126d4d0ac89b under the heading of "questionable whether it's a fix or not"
Richard Jones <richard@users.sourceforge.net>
parents: 1591
diff changeset
42 tal:content="i/activity/reldate">&nbsp;</td>
2077
3e0961d6d44d Added the "actor" property.
Richard Jones <richard@users.sourceforge.net>
parents: 2075
diff changeset
43 <td class="date" tal:condition="request/show/actor"
3e0961d6d44d Added the "actor" property.
Richard Jones <richard@users.sourceforge.net>
parents: 2075
diff changeset
44 tal:content="python:i.actor.plain() or default">&nbsp;</td>
1625
126d4d0ac89b under the heading of "questionable whether it's a fix or not"
Richard Jones <richard@users.sourceforge.net>
parents: 1591
diff changeset
45 <td tal:condition="request/show/topic"
126d4d0ac89b under the heading of "questionable whether it's a fix or not"
Richard Jones <richard@users.sourceforge.net>
parents: 1591
diff changeset
46 tal:content="python:i.topic.plain() or default">&nbsp;</td>
1591
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
47 <td tal:condition="request/show/title">
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
48 <a tal:attributes="href string:issue${i/id}"
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
49 tal:content="python:str(i.title.plain(hyperlink=0)) or '[no title]'">title</a>
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
50 </td>
1625
126d4d0ac89b under the heading of "questionable whether it's a fix or not"
Richard Jones <richard@users.sourceforge.net>
parents: 1591
diff changeset
51 <td tal:condition="request/show/status"
126d4d0ac89b under the heading of "questionable whether it's a fix or not"
Richard Jones <richard@users.sourceforge.net>
parents: 1591
diff changeset
52 tal:content="python:i.status.plain() or default">&nbsp;</td>
126d4d0ac89b under the heading of "questionable whether it's a fix or not"
Richard Jones <richard@users.sourceforge.net>
parents: 1591
diff changeset
53 <td tal:condition="request/show/creator"
126d4d0ac89b under the heading of "questionable whether it's a fix or not"
Richard Jones <richard@users.sourceforge.net>
parents: 1591
diff changeset
54 tal:content="python:i.creator.plain() or default">&nbsp;</td>
126d4d0ac89b under the heading of "questionable whether it's a fix or not"
Richard Jones <richard@users.sourceforge.net>
parents: 1591
diff changeset
55 <td tal:condition="request/show/assignedto"
126d4d0ac89b under the heading of "questionable whether it's a fix or not"
Richard Jones <richard@users.sourceforge.net>
parents: 1591
diff changeset
56 tal:content="python:i.assignedto.plain() or default">&nbsp;</td>
1591
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
57 </tr>
1625
126d4d0ac89b under the heading of "questionable whether it's a fix or not"
Richard Jones <richard@users.sourceforge.net>
parents: 1591
diff changeset
58
1591
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
59 </tal:block>
1635
b0ffb474716e nicer index navigation
Richard Jones <richard@users.sourceforge.net>
parents: 1625
diff changeset
60
b0ffb474716e nicer index navigation
Richard Jones <richard@users.sourceforge.net>
parents: 1625
diff changeset
61 <tr tal:condition="batch">
b0ffb474716e nicer index navigation
Richard Jones <richard@users.sourceforge.net>
parents: 1625
diff changeset
62 <th tal:attributes="colspan python:len(request.columns)">
b0ffb474716e nicer index navigation
Richard Jones <richard@users.sourceforge.net>
parents: 1625
diff changeset
63 <table width="100%">
b0ffb474716e nicer index navigation
Richard Jones <richard@users.sourceforge.net>
parents: 1625
diff changeset
64 <tr class="navigation">
b0ffb474716e nicer index navigation
Richard Jones <richard@users.sourceforge.net>
parents: 1625
diff changeset
65 <th>
b0ffb474716e nicer index navigation
Richard Jones <richard@users.sourceforge.net>
parents: 1625
diff changeset
66 <a tal:define="prev batch/previous" tal:condition="prev"
b0ffb474716e nicer index navigation
Richard Jones <richard@users.sourceforge.net>
parents: 1625
diff changeset
67 tal:attributes="href python:request.indexargs_href(request.classname,
1911
f5c804379c85 fixed ZRoundup - mostly changes to classic template
Richard Jones <richard@users.sourceforge.net>
parents: 1825
diff changeset
68 {'@startwith':prev.first, '@pagesize':prev.size})">&lt;&lt; previous</a>
1635
b0ffb474716e nicer index navigation
Richard Jones <richard@users.sourceforge.net>
parents: 1625
diff changeset
69 &nbsp;
b0ffb474716e nicer index navigation
Richard Jones <richard@users.sourceforge.net>
parents: 1625
diff changeset
70 </th>
b0ffb474716e nicer index navigation
Richard Jones <richard@users.sourceforge.net>
parents: 1625
diff changeset
71 <th tal:content="python: '%d...%d out of %d'%(batch.start,
b0ffb474716e nicer index navigation
Richard Jones <richard@users.sourceforge.net>
parents: 1625
diff changeset
72 batch.start+batch.length-1, batch.sequence_length)">current</th>
b0ffb474716e nicer index navigation
Richard Jones <richard@users.sourceforge.net>
parents: 1625
diff changeset
73 <th>
b0ffb474716e nicer index navigation
Richard Jones <richard@users.sourceforge.net>
parents: 1625
diff changeset
74 <a tal:define="next batch/next" tal:condition="next"
b0ffb474716e nicer index navigation
Richard Jones <richard@users.sourceforge.net>
parents: 1625
diff changeset
75 tal:attributes="href python:request.indexargs_href(request.classname,
1911
f5c804379c85 fixed ZRoundup - mostly changes to classic template
Richard Jones <richard@users.sourceforge.net>
parents: 1825
diff changeset
76 {'@startwith':next.first, '@pagesize':next.size})">next &gt;&gt;</a>
1635
b0ffb474716e nicer index navigation
Richard Jones <richard@users.sourceforge.net>
parents: 1625
diff changeset
77 &nbsp;
b0ffb474716e nicer index navigation
Richard Jones <richard@users.sourceforge.net>
parents: 1625
diff changeset
78 </th>
b0ffb474716e nicer index navigation
Richard Jones <richard@users.sourceforge.net>
parents: 1625
diff changeset
79 </tr>
b0ffb474716e nicer index navigation
Richard Jones <richard@users.sourceforge.net>
parents: 1625
diff changeset
80 </table>
1591
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
81 </th>
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
82 </tr>
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
83 </table>
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
84
1976
3a4abf6d48c2 body_title improvement
Richard Jones <richard@users.sourceforge.net>
parents: 1911
diff changeset
85 <form method="GET" id="index-controls" tal:attributes="action request/classname">
1824
24819ee5dfbc First steps towards HTML4.01 Strict validation.
Johannes Gijsbers <jlgijsbers@users.sourceforge.net>
parents: 1635
diff changeset
86
1591
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
87 <table class="form">
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
88 <tr tal:condition="batch">
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
89 <th>Sort on:</th>
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
90 <td>
1911
f5c804379c85 fixed ZRoundup - mostly changes to classic template
Richard Jones <richard@users.sourceforge.net>
parents: 1825
diff changeset
91 <select name="@sort">
1591
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
92 <option value="">- nothing -</option>
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
93 <option tal:repeat="col context/properties"
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
94 tal:attributes="value col/_name;
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
95 selected python:col._name == request.sort[1]"
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
96 tal:content="col/_name">column</option>
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
97 </select>
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
98 </td>
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
99 <th>Descending:</th>
1911
f5c804379c85 fixed ZRoundup - mostly changes to classic template
Richard Jones <richard@users.sourceforge.net>
parents: 1825
diff changeset
100 <td><input type="checkbox" name="@sortdir"
1591
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
101 tal:attributes="checked python:request.sort[0] == '-'">
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
102 </td>
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
103 </tr>
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
104 <tr>
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
105 <th>Group on:</th>
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
106 <td>
1911
f5c804379c85 fixed ZRoundup - mostly changes to classic template
Richard Jones <richard@users.sourceforge.net>
parents: 1825
diff changeset
107 <select name="@group">
1591
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
108 <option value="">- nothing -</option>
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
109 <option tal:repeat="col context/properties"
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
110 tal:attributes="value col/_name;
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
111 selected python:col._name == request.group[1]"
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
112 tal:content="col/_name">column</option>
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
113 </select>
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
114 </td>
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
115 <th>Descending:</th>
1911
f5c804379c85 fixed ZRoundup - mostly changes to classic template
Richard Jones <richard@users.sourceforge.net>
parents: 1825
diff changeset
116 <td><input type="checkbox" name="@groupdir"
1591
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
117 tal:attributes="checked python:request.group[0] == '-'">
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
118 </td>
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
119 </tr>
1824
24819ee5dfbc First steps towards HTML4.01 Strict validation.
Johannes Gijsbers <jlgijsbers@users.sourceforge.net>
parents: 1635
diff changeset
120 <tr><td colspan="4">
24819ee5dfbc First steps towards HTML4.01 Strict validation.
Johannes Gijsbers <jlgijsbers@users.sourceforge.net>
parents: 1635
diff changeset
121 <input type="submit" value="Redisplay">
24819ee5dfbc First steps towards HTML4.01 Strict validation.
Johannes Gijsbers <jlgijsbers@users.sourceforge.net>
parents: 1635
diff changeset
122 <tal:block tal:replace="structure
24819ee5dfbc First steps towards HTML4.01 Strict validation.
Johannes Gijsbers <jlgijsbers@users.sourceforge.net>
parents: 1635
diff changeset
123 python:request.indexargs_form(sort=0, group=0)" />
24819ee5dfbc First steps towards HTML4.01 Strict validation.
Johannes Gijsbers <jlgijsbers@users.sourceforge.net>
parents: 1635
diff changeset
124 </td></tr>
1591
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
125 </table>
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
126 </form>
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
127
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
128 </tal:block>
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
129
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
130 </td>
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
131 </tal:block>

Roundup Issue Tracker: http://roundup-tracker.org/