annotate templates/classic/html/msg.item.html @ 3696:790363e96852

Sorting/grouping by multiple properties. - Implement sorting/grouping by multiple properties for the web interface. I'm now using @sort0/@sortdir0,@sort1/@sortdir1,... and @group0/@groupdir0,... when generating URLs from a search template. These are converted to a list internally. When saving URLs (e.g. when storing queries) I'm using @sort=prop1,prop2,... and @group=... with optional '-' prepended to individual props. This means saved URLs are backward compatible with existing trackers (and yes, this was a design goal). I need the clumsy version with @sort0,@sort1 etc, because I'm currently using several selectors and checkboxes (as the classic template does, too). I don't think there is a way around that in HTML? - Updated (hopefully all) documentation to reflect the new URL format and the consequences in the web-interface. - I've set the number of sort/group properties in the classic template to two -- this can easily be reverted by changing n_sort to 1. Richard, would you look over these changes? I've set a tag before and (will set) after commit, so that it would be easy to merge out. Don't be too scared about the size of the change, most is documentation, the guts are in cgi/templating.py and small changes in the classic template.
author Ralf Schlatterbeck <schlatterbeck@users.sourceforge.net>
date Wed, 30 Aug 2006 20:28:26 +0000
parents c26f2ba69c78
children a9f6eb633452
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: msg.item,v 1.3 2002/05/22 00:32:34 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">
2395
97f810f39d16 i18n markup
Alexander Smishlajev <a1s@users.sourceforge.net>
parents: 2206
diff changeset
3 <title metal:fill-slot="head_title">
97f810f39d16 i18n markup
Alexander Smishlajev <a1s@users.sourceforge.net>
parents: 2206
diff changeset
4 <tal:block condition="context/id" i18n:translate=""
97f810f39d16 i18n markup
Alexander Smishlajev <a1s@users.sourceforge.net>
parents: 2206
diff changeset
5 >Message <span tal:replace="context/id" i18n:name="id"
97f810f39d16 i18n markup
Alexander Smishlajev <a1s@users.sourceforge.net>
parents: 2206
diff changeset
6 /> - <span tal:replace="config/TRACKER_NAME" i18n:name="tracker"
97f810f39d16 i18n markup
Alexander Smishlajev <a1s@users.sourceforge.net>
parents: 2206
diff changeset
7 /></tal:block>
97f810f39d16 i18n markup
Alexander Smishlajev <a1s@users.sourceforge.net>
parents: 2206
diff changeset
8 <tal:block condition="not:context/id" i18n:translate=""
97f810f39d16 i18n markup
Alexander Smishlajev <a1s@users.sourceforge.net>
parents: 2206
diff changeset
9 >New Message - <span tal:replace="config/TRACKER_NAME" i18n:name="tracker"
97f810f39d16 i18n markup
Alexander Smishlajev <a1s@users.sourceforge.net>
parents: 2206
diff changeset
10 /></tal:block>
97f810f39d16 i18n markup
Alexander Smishlajev <a1s@users.sourceforge.net>
parents: 2206
diff changeset
11 </title>
97f810f39d16 i18n markup
Alexander Smishlajev <a1s@users.sourceforge.net>
parents: 2206
diff changeset
12 <tal:block metal:fill-slot="body_title">
97f810f39d16 i18n markup
Alexander Smishlajev <a1s@users.sourceforge.net>
parents: 2206
diff changeset
13 <span tal:condition="python: not (context.id or context.is_edit_ok())"
97f810f39d16 i18n markup
Alexander Smishlajev <a1s@users.sourceforge.net>
parents: 2206
diff changeset
14 tal:omit-tag="python:1" i18n:translate="">New Message</span>
97f810f39d16 i18n markup
Alexander Smishlajev <a1s@users.sourceforge.net>
parents: 2206
diff changeset
15 <span tal:condition="python: not context.id and context.is_edit_ok()"
97f810f39d16 i18n markup
Alexander Smishlajev <a1s@users.sourceforge.net>
parents: 2206
diff changeset
16 tal:omit-tag="python:1" i18n:translate="">New Message Editing</span>
97f810f39d16 i18n markup
Alexander Smishlajev <a1s@users.sourceforge.net>
parents: 2206
diff changeset
17 <span tal:condition="python: context.id and not context.is_edit_ok()"
97f810f39d16 i18n markup
Alexander Smishlajev <a1s@users.sourceforge.net>
parents: 2206
diff changeset
18 tal:omit-tag="python:1" i18n:translate="">Message<tal:x
97f810f39d16 i18n markup
Alexander Smishlajev <a1s@users.sourceforge.net>
parents: 2206
diff changeset
19 replace="context/id" i18n:name="id" /></span>
97f810f39d16 i18n markup
Alexander Smishlajev <a1s@users.sourceforge.net>
parents: 2206
diff changeset
20 <span tal:condition="python: context.id and context.is_edit_ok()"
97f810f39d16 i18n markup
Alexander Smishlajev <a1s@users.sourceforge.net>
parents: 2206
diff changeset
21 tal:omit-tag="python:1" i18n:translate="">Message<tal:x
97f810f39d16 i18n markup
Alexander Smishlajev <a1s@users.sourceforge.net>
parents: 2206
diff changeset
22 replace="context/id" i18n:name="id" /> Editing</span>
97f810f39d16 i18n markup
Alexander Smishlajev <a1s@users.sourceforge.net>
parents: 2206
diff changeset
23 </tal:block>
1591
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
24 <td class="content" metal:fill-slot="content">
3119
c26f2ba69c78 some bits I missed, and the next release will be beta ;)
Richard Jones <richard@users.sourceforge.net>
parents: 2395
diff changeset
25
c26f2ba69c78 some bits I missed, and the next release will be beta ;)
Richard Jones <richard@users.sourceforge.net>
parents: 2395
diff changeset
26 <p tal:condition="not:context/is_view_ok" i18n:translate="">You are not
c26f2ba69c78 some bits I missed, and the next release will be beta ;)
Richard Jones <richard@users.sourceforge.net>
parents: 2395
diff changeset
27 allowed to view this page.</p>
c26f2ba69c78 some bits I missed, and the next release will be beta ;)
Richard Jones <richard@users.sourceforge.net>
parents: 2395
diff changeset
28
c26f2ba69c78 some bits I missed, and the next release will be beta ;)
Richard Jones <richard@users.sourceforge.net>
parents: 2395
diff changeset
29 <div tal:condition="context/is_view_ok">
1591
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
30 <table class="form">
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
31
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
32 <tr>
2395
97f810f39d16 i18n markup
Alexander Smishlajev <a1s@users.sourceforge.net>
parents: 2206
diff changeset
33 <th i18n:translate="">Author</th>
1591
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
34 <td tal:content="context/author"></td>
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
35 </tr>
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
36
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
37 <tr>
2395
97f810f39d16 i18n markup
Alexander Smishlajev <a1s@users.sourceforge.net>
parents: 2206
diff changeset
38 <th i18n:translate="">Recipients</th>
1591
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
39 <td tal:content="context/recipients"></td>
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
40 </tr>
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
41
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
42 <tr>
2395
97f810f39d16 i18n markup
Alexander Smishlajev <a1s@users.sourceforge.net>
parents: 2206
diff changeset
43 <th i18n:translate="">Date</th>
1591
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
44 <td tal:content="context/date"></td>
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
45 </tr>
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
46 </table>
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
47
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
48 <table class="messages">
2395
97f810f39d16 i18n markup
Alexander Smishlajev <a1s@users.sourceforge.net>
parents: 2206
diff changeset
49 <tr><th colspan=2 class="header" i18n:translate="">Content</th></tr>
1591
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
50 <tr>
2206
8822a99f7650 merge from maint-0-6
Richard Jones <richard@users.sourceforge.net>
parents: 2187
diff changeset
51 <td class="content" colspan=2><pre tal:content="structure context/content/hyperlinked"></pre></td>
1591
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
52 </tr>
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
53 </table>
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
54
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
55 <table class="files" tal:condition="context/files">
2395
97f810f39d16 i18n markup
Alexander Smishlajev <a1s@users.sourceforge.net>
parents: 2206
diff changeset
56 <tr><th colspan="2" class="header" i18n:translate="">Files</th></tr>
97f810f39d16 i18n markup
Alexander Smishlajev <a1s@users.sourceforge.net>
parents: 2206
diff changeset
57 <tr>
97f810f39d16 i18n markup
Alexander Smishlajev <a1s@users.sourceforge.net>
parents: 2206
diff changeset
58 <th i18n:translate="">File name</th>
97f810f39d16 i18n markup
Alexander Smishlajev <a1s@users.sourceforge.net>
parents: 2206
diff changeset
59 <th i18n:translate="">Uploaded</th>
97f810f39d16 i18n markup
Alexander Smishlajev <a1s@users.sourceforge.net>
parents: 2206
diff changeset
60 </tr>
1591
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
61 <tr tal:repeat="file context/files">
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
62 <td>
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
63 <a tal:attributes="href string:file${file/id}/${file/name}"
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
64 tal:content="file/name">dld link</a>
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
65 </td>
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
66 <td>
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
67 <span tal:content="file/creator">creator's name</span>,
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
68 <span tal:content="file/creation">creation date</span>
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
69 </td>
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
70 </tr>
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
71 </table>
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
72
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
73 <tal:block tal:replace="structure context/history" />
3119
c26f2ba69c78 some bits I missed, and the next release will be beta ;)
Richard Jones <richard@users.sourceforge.net>
parents: 2395
diff changeset
74
c26f2ba69c78 some bits I missed, and the next release will be beta ;)
Richard Jones <richard@users.sourceforge.net>
parents: 2395
diff changeset
75 </div>
1591
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
76 </td>
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
77
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
78 </tal:block>

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