source: products/qPloneComments/branches/plone-2.5/skins/qplonecomments/2.0.5/discussionitem_view.pt

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

Building directory structure

  • Property svn:eol-style set to native
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="isPublished python:here.review_state=='published';
22                         ifModerate python:here.portal_properties.qPloneComments.getProperty('Enable_Moderation', None);">
23
24            <h2>
25                <tal:block replace="structure here/discussionitem_icon.gif" />
26                <span tal:replace="here/title_or_id">Comment title</span>
27            </h2>
28
29           <div class="documentByLine"
30                tal:define="creator here/Creator;
31                            isMember python:not here.getProperty('isAnon',1)">
32               <span i18n:translate="label_comment_by">Posted by</span>
33               <strong tal:content="creator"
34                       tal:condition="isMember">Name</strong>
35               <tal:x tal:replace="creator"
36                      tal:condition="not:isMember">Name</tal:x>
37               <span i18n:translate="label_commented_at">at</span>
38               <span tal:replace="python:portal.toPortalTime(here.modified(),
39                                         long_format=1)">8/23/2001 12:40:44 PM</span>
40               <span tal:condition="python:ifModerate and not isPublished">[pending]</span>
41           </div>
42
43            <div class="commentBody"
44                 tal:content="structure here/CookedBody">
45            This is the body text of the comment.
46            </div>
47
48            <metal:block use-macro="here/viewThreadsAtBottom/macros/discussionView" />
49            <form name="delete"
50                  action=""
51                  method="post"
52                  style="display: inline;"
53                  tal:condition="python: checkPermission('Moderate Discussion', here)"
54                  tal:attributes="action string:${here/absolute_url}/deleteDiscussion">
55
56                <input class="destructive"
57                   type="submit"
58                   value="Remove this reply"
59                   i18n:domain="plonecomments"
60                   i18n:attributes="value"
61                   />
62            </form>
63
64            <form name="publish_reply"
65                  action=""
66                  method="post"
67                  style="display: inline;"
68                  tal:condition="python:not isPublished"
69                  tal:attributes="action string:${here/absolute_url}/discussion_publish_comment">
70
71                <input class="standalone"
72                       type="submit"
73                       value="Publish"
74                                           i18n:domain="plonecomments"
75                       i18n:attributes="value"
76                       />
77            </form>
78
79            <div class="documentByLine"
80                 tal:condition="not:isPublished">
81                                <span i18n:domain="plonecomments"
82                      i18n:translate="text_no_reply_until_published">Until publishing this comment adding reply impossible.</span>
83                   </div>
84
85        </div>
86
87    </div>
88</metal:block>
89
90<metal:block metal:fill-slot="sub">
91&nbsp;
92</metal:block>
93
94</html>
95
Note: See TracBrowser for help on using the repository browser.