source: products/qPloneComments/tags/1.5/skins/qplonecomments/discussionitem_view.pt @ 458

Last change on this file since 458 was 1, checked in by myroslav, 19 years ago

Building directory structure

File size: 3.5 KB
Line 
1<html xmlns:tal="http://xml.zope.org/namespaces/tal"
2      xmlns:metal="http://xml.zope.org/namespaces/metal"
3      metal:use-macro="here/main_template/macros/master"
4      i18n:domain="plone">
5
6<metal:block fill-slot="top_slot"
7             tal:define="dummy python:request.set('disable_border',1)" />
8
9<metal:block metal:fill-slot="main">
10
11    <h1 i18n:translate="heading_comment">Comment</h1>
12
13    <div tal:condition="here/talkback|nothing">
14
15        <small>
16            <span i18n:translate="description_above_in_comment_thread" tal:omit-tag="">Above in this comment thread:</span>
17            <span tal:replace="structure here/aboveInThread"></span>
18        </small>
19
20        <div class="comment"
21             tal:define="userHasReviewPermission python:checkPermission('Review portal content', here);
22                         isPublished here/isDIPublished;
23                         ifModerate here/ifModerate;">
24
25            <h2>
26                <tal:block replace="structure here/discussionitem_icon.gif" />
27                <span tal:replace="here/title_or_id">Comment title</span>
28            </h2>
29
30           <div class="documentByLine"
31                tal:define="creator here/Creator;
32                            isMember python:not here.getProperty('isAnon',1)">
33               <span tal:content="python:test(isPublished, 'Published', 'Not Published')"
34                     tal:condition="ifModerate"> Publish state </span>
35               <span i18n:translate="label_comment_by">Posted by</span>
36               <strong tal:content="creator"
37                       tal:condition="isMember">Name</strong>
38               <tal:x tal:replace="creator"
39                      tal:condition="not:isMember">Name</tal:x>
40               <span i18n:translate="label_commented_at">at</span>
41               <span tal:replace="python:portal.toPortalTime(here.modified(),
42                                         long_format=1)">8/23/2001 12:40:44 PM</span>
43           </div>
44
45            <div class="commentBody"
46                 tal:content="structure here/CookedBody">
47            This is the body text of the comment.
48            </div>
49
50            <metal:block use-macro="here/viewThreadsAtBottom/macros/discussionView" />
51
52            <form name="delete"
53                  action=""
54                  method="post"
55                  style="display: inline;"
56                  tal:condition="python: checkPermission('Manage portal', here)"
57                  tal:attributes="action string:${here/absolute_url}/deleteDiscussion">
58
59                <input class="destructive"
60                   type="submit"
61                   value="Remove This Reply"
62                   i18n:attributes="value"
63                   />
64            </form>
65
66            <form name="publish_reply"
67                  action=""
68                  method="post"
69                  style="display: inline;"
70                  tal:condition="python:userHasReviewPermission and not isPublished"
71                  tal:attributes="action string:${here/absolute_url}/discussion_publish_comment">
72
73                <input class="standalone"
74                       type="submit"
75                       value="Publish This Reply"
76                       i18n:attributes="value"
77                       />
78            </form>
79
80            <div class="documentByLine"
81                 tal:condition="not:isPublished">Until publishing this comment adding reply impossible.</div>
82
83        </div>
84
85    </div>
86</metal:block>
87
88<metal:block metal:fill-slot="sub">
89&nbsp;
90</metal:block>
91
92</html>
93
Note: See TracBrowser for help on using the repository browser.