source: products/qPloneComments/tags/1.7b/skins/qplonecomments/discussionitem_view.pt @ 1591

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

Building directory structure

File size: 3.3 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 here/isDIPublished;
22                         ifModerate here/ifModerate;">
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 tal:content="python:test(isPublished, 'Published', 'Not Published')"
33                     tal:condition="ifModerate"> Publish state </span>
34               <span i18n:translate="label_comment_by">Posted by</span>
35               <strong tal:content="creator"
36                       tal:condition="isMember">Name</strong>
37               <tal:x tal:replace="creator"
38                      tal:condition="not:isMember">Name</tal:x>
39               <span i18n:translate="label_commented_at">at</span>
40               <span tal:replace="python:portal.toPortalTime(here.modified(),
41                                         long_format=1)">8/23/2001 12:40:44 PM</span>
42           </div>
43
44            <div class="commentBody"
45                 tal:content="structure here/CookedBody">
46            This is the body text of the comment.
47            </div>
48
49            <metal:block use-macro="here/viewThreadsAtBottom/macros/discussionView" />
50            <form name="delete"
51                  action=""
52                  method="post"
53                  style="display: inline;"
54                  tal:condition="python: checkPermission('Manage portal', here)"
55                  tal:attributes="action string:${here/absolute_url}/deleteDiscussion">
56
57                <input class="destructive"
58                   type="submit"
59                   value="Remove This Reply"
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 This Reply"
74                       i18n:attributes="value"
75                       />
76            </form>
77
78            <div class="documentByLine"
79                 tal:condition="not:isPublished">Until publishing this comment adding reply impossible.</div>
80
81        </div>
82
83    </div>
84</metal:block>
85
86<metal:block metal:fill-slot="sub">
87&nbsp;
88</metal:block>
89
90</html>
91
Note: See TracBrowser for help on using the repository browser.