source: trunk/skins/lemill/discussion.pt @ 3070

Revision 3070, 3.9 KB checked in by jukka, 9 years ago (diff)

Fixed changing coverimages.

Line 
1<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" metal:use-macro="here/main_template/macros/master" i18n:domain="lemill">
2
3  <metal:headslot fill-slot="head_slot">
4    <link rel="alternate" title="RSS 1.0" type="application/rss+xml"
5          tal:attributes="href string:${here_url}/RSS"/>
6  </metal:headslot>
7
8
9 <body>
10    <div metal:fill-slot="main">
11       <metal:main_macro define-macro="main">
12        <tal:discussable define="obj nocall:obj | nocall:here" condition="obj/isDiscussable">
13        <metal:header define-macro="header">
14         <h1 class="documentFirstHeading" i18n:translate="title_discussion_page">
15            Discussion about <a i18n:name="resource_name" tal:attributes="href string:${obj/absolute_url}/view" href="" tal:content="obj/Title">title</a>
16         </h1>
17         <tal:has_document_byline tal:condition="exists:obj/document_byline" tal:define="nolinks python:False">
18            <div metal:use-macro="obj/document_byline/macros/byline">
19                Get the byline - contains details about author and modification date
20            </div>
21            <div class="clear" style="height:1em"></div>           
22         </tal:has_document_byline>
23        </metal:header>
24
25        <metal:comments_macro define-macro="comments">
26        <tal:mustLogin tal:condition="isAnon">
27            <form tal:attributes="action python:'%s/login_form?came_from=%s' % (here.portal_url(), here.absolute_url())">
28                <input class="standalone" style="margin-bottom: 1.25em;" type="submit" value="Log in to write a reply" i18n:attributes="value label_login_to_add_replies;" />
29            </form>
30        </tal:mustLogin>
31
32        <div class="discussion">
33            <tal:getreplies repeat="reply here/getSortedDiscussion">
34                <div class="comment" tal:define="text reply/getBodyText;
35                            author reply/Creator;
36                            date reply/CreationDate;">
37
38                    <a name="#" tal:attributes="name string:${reply/getId}"></a>
39                    <div class="commentBody"
40                        tal:content="structure text">
41                        PLACEHOLDER
42                    </div>
43                    <form name="delete"
44                        action=""
45                        method="post"
46                        style="display: inline;"
47                        tal:condition="python:checkPermission('Manage portal', here)"
48                        tal:attributes="action string:${here/absolute_url}/deleteReplyFromForm">
49                        <input type="hidden" name="delete_id" tal:attributes="value reply/getId" />
50                        <input class="destructive right" type="submit" value="Remove" i18n:attributes="value label_remove;" />
51                    </form>
52
53                    <div class="discreet">
54                        <span i18n:translate="label_comment_by">Posted by</span>
55                        <a href="#" tal:replace="structure python:lutool.linkTo(author)" />
56                        <span i18n:translate="label_commented_at">at</span>
57                        <span tal:replace="python:toLocalizedTime(reply.CreationDate(), long_format=1)">8/23/2001 12:40:44 PM</span>
58
59                    </div>
60
61                </div>
62            </tal:getreplies>
63
64            <div class="form_submit">
65            <form name="reply" action="" method="post"
66                tal:condition="not:isAnon"
67                tal:attributes="action string:${here/absolute_url}/createReplyFromForm"
68                tal:define="fieldName string:body_text; value nothing; widget python:{'rows':6, 'cols':40}">
69                <h3 i18n:translate="comment_box_header">Reply</h3>
70
71                <div metal:use-macro="here/widgets/textarea/macros/area_edit" />
72
73                <input class="save" style="margin-bottom: 1.25em; width: 150px;" type="submit" value="Add reply"
74                        i18n:attributes="value label_add_reply;" />
75                <br />
76            </form>
77            </div>
78
79            <div>
80                <a href="CommentRSS" tal:attributes="href string:${here/absolute_url}/RSS">
81                    <img i18n:domain="plone" i18n:attributes="title title_rss_feed_comments; alt label_rss_feed;"
82                        tal:attributes="src string:$portal_url/rss.gif" src="rss.gif" alt="RSS Feed" title="RSS feed of comments" />
83                </a>
84                <a href="CommentRSS"  tal:attributes="href string:${here/absolute_url}/RSS" i18n:translate="rss_comments_text" i18n:domain="lemill">Subscribe to RSS feed for comments</a>
85            </div>
86
87        </div>
88        </metal:comments_macro>
89        </tal:discussable>
90    </metal:main_macro>
91   </div>
92 </body>
93</html>
Note: See TracBrowser for help on using the repository browser.