comparison website/issues/html/msg.item.html @ 4024:c2d0d3e9099d website

svn repository setup
author Stefan Seefeld <stefan@users.sourceforge.net>
date Fri, 06 Feb 2009 13:16:31 +0000
parents
children f63a2b15e628
comparison
equal deleted inserted replaced
4023:86c38b5aed66 4024:c2d0d3e9099d
1 <tal:block metal:use-macro="templates/page/macros/icing">
2 <title metal:fill-slot="head_title">
3 <tal:block condition="context/id" i18n:translate=""
4 >Message <span tal:replace="context/id" i18n:name="id"
5 /> - <span tal:replace="config/TRACKER_NAME" i18n:name="tracker"
6 /></tal:block>
7 <tal:block condition="not:context/id" i18n:translate=""
8 >New Message - <span tal:replace="config/TRACKER_NAME" i18n:name="tracker"
9 /></tal:block>
10 </title>
11 <tal:block metal:fill-slot="body_title">
12 <span tal:condition="python: not (context.id or context.is_edit_ok())"
13 tal:omit-tag="python:1" i18n:translate="">New Message</span>
14 <span tal:condition="python: not context.id and context.is_edit_ok()"
15 tal:omit-tag="python:1" i18n:translate="">New Message Editing</span>
16 <span tal:condition="python: context.id and not context.is_edit_ok()"
17 tal:omit-tag="python:1" i18n:translate="">Message<tal:x
18 replace="context/id" i18n:name="id" /></span>
19 <span tal:condition="python: context.id and context.is_edit_ok()"
20 tal:omit-tag="python:1" i18n:translate="">Message<tal:x
21 replace="context/id" i18n:name="id" /> Editing</span>
22 </tal:block>
23 <td class="content" metal:fill-slot="content">
24
25 <p tal:condition="python:not (context.is_view_ok()
26 or request.user.hasRole('Anonymous'))" i18n:translate="">
27 You are not allowed to view this page.</p>
28
29 <p tal:condition="python:not context.is_view_ok()
30 and request.user.hasRole('Anonymous')" i18n:translate="">
31 Please login with your username and password.</p>
32
33 <div tal:condition="context/is_view_ok">
34 <table class="form">
35
36 <tr>
37 <th i18n:translate="">Author</th>
38 <td tal:content="context/author"></td>
39 </tr>
40
41 <tr>
42 <th i18n:translate="">Recipients</th>
43 <td tal:content="context/recipients"></td>
44 </tr>
45
46 <tr>
47 <th i18n:translate="">Date</th>
48 <td tal:content="context/date"></td>
49 </tr>
50
51 <tr>
52 <th i18n:translate="">Message-id</th>
53 <td tal:content="context/messageid"></td>
54 </tr>
55
56 <tr>
57 <th i18n:translate="">In-reply-to</th>
58 <td tal:content="context/inreplyto"></td>
59 </tr>
60
61 </table>
62
63 <!--<p tal:condition="python:utils.sb_is_spam(context)" class="error-message">
64 Message has been classified as spam</p>-->
65
66 <table class="messages">
67
68 <!-- <tr>
69 <th class="header" i18n:translate="">Content</th>
70 <th class="header"
71 tal:condition="python:request.user.hasPermission('SB: May Classify')">
72 <form method="POST" onSubmit="return submit_once()"
73 enctype="multipart/form-data"
74 tal:attributes="action context/designator">
75
76 <input type="hidden" name="@action" value="spambayes_classify">
77 <input type="submit" name="trainspam" value="Mark as SPAM" i18n:attributes="value">
78 <input type="submit" name="trainham" value="Mark as HAM (not SPAM)" i18n:attributes="value">
79 </form>
80 </th>
81
82 </tr>-->
83
84 <tr>
85 <td class="content" colspan="2"
86 tal:condition="python:context.content.is_view_ok()">
87 <pre
88 tal:content="structure python:utils.localReplace(context.content.hyperlinked())"></pre></td>
89 <td class="content" colspan="2"
90 tal:condition="python:not context.content.is_view_ok()">
91 You are not authorized to see this message.
92 <!-- Message has been classified as spam and is therefore not
93 available to unathorized users. If you think this is
94 incorrect, please login and report the message as being
95 misclassified. -->
96 </td>
97 </tr>
98 </table>
99
100 <table class="files" tal:condition="context/files">
101 <tr><th colspan="2" class="header" i18n:translate="">Files</th></tr>
102 <tr>
103 <th i18n:translate="">File name</th>
104 <th i18n:translate="">Uploaded</th>
105 </tr>
106 <tr tal:repeat="file context/files">
107 <td>
108 <a tal:attributes="href string:file${file/id}/${file/name}"
109 tal:content="file/name">dld link</a>
110 </td>
111 <td>
112 <span tal:content="file/creator">creator's name</span>,
113 <span tal:content="file/creation">creation date</span>
114 </td>
115 </tr>
116 </table>
117
118 <tal:block tal:replace="structure context/history" />
119
120 </div>
121 </td>
122
123 </tal:block>

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