source: trunk/skins/lemill/portlet_groupblog_actions.pt @ 443

Revision 443, 3.8 KB checked in by hans, 13 years ago (diff)

Portlet with dummy links to future functionalities

Line 
1<html xmlns:tal="http://xml.zope.org/namespaces/tal"
2      xmlns:metal="http://xml.zope.org/namespaces/metal"
3      i18n:domain="lemill">
4<body>
5<div metal:define-macro="portlet" id="portlet-groupblog-actions"
6    tal:define="blogobj here/getBlog;
7        blogurl blogobj/absolute_url;
8        blogtitle blogobj/title;       
9        isMember python:here.isMember(member.id);
10        isManager python:here.amIManager()">
11
12<div class="tb-portlet" metal:define-macro="image_div">
13    <img src="default.png" tal:attributes="src blogobj/getCoverImageURL" height="120" width="160" style="padding: 10px 19px"/>
14    <ul tal:condition="isMember">
15        <li><a href="" tal:attributes="href string:$blogurl/change_coverimage">Change cover image</a></li>
16    </ul>
17</div>
18
19<div class="tb-portlet">
20    <div class="portlet-title">
21    <img src="transparent.png" alt="" class="smallicon" />
22    Actions
23    </div>
24    <ul tal:condition="isMember">
25        <li><a href="#" tal:attributes="href string:$blogurl/createObject?type_name=BlogPost">New post</a></li>
26        <li><a href="" tal:attributes="href string:$blogurl/edit">Edit group information</a></li>
27        <li><a href="TODO">Edit categories</a></li>
28        <li><a href="TODO">Edit blogroll</a></li>
29        <li><a href="" tal:attributes="href string:$blogurl/leave_group">Leave group</a></li>
30    </ul>
31    <ul tal:condition="python: not isMember and not isAnon">
32        <li><a href="#" tal:attributes="href string:$blogurl/join_group">Join this group</a></li>
33    </ul>
34    <ul tal:condition="isAnon">
35        <li><a href="#" tal:attributes="href string:$blogurl/join_form">Join this group</a></li>
36    </ul>
37</div>
38
39<div class="tb-portlet">
40    <div class="portlet-title">
41    <img src="transparent.png" alt="" class="smallicon" />
42    Archives
43    </div>
44    <ul>
45        <li><a href="TODO">July 2006</li>
46        <li><a href="TODO">June 2006</li>
47        <li><a href="TODO">May 2006</li>
48    </ul>
49</div>
50
51<div class="tb-portlet">
52    <div class="portlet-title">
53    <img src="transparent.png" alt="" class="smallicon" />
54    Categories
55    </div>
56    <ul>
57        <li><a href="TODO">Blog posts</li>
58        <li><a href="TODO">Collaboration proposals</li>
59    </ul>
60</div>
61
62<div class="tb-portlet" tal:condition="isMember" metal:define-macro="group_members">
63    <div class="portlet-title">
64    <img src="transparent.png" alt="" class="smallicon" />
65    Members
66    </div>
67
68    <ul tal:define="group python:here.portal_groups.getGroupById(blogobj.getId());
69        groupmembers group/getGroupMemberIds;
70        n_mem python:len(groupmembers)">
71        <tal:listing condition="python: n_mem<400" repeat="memberid groupmembers">
72             <li tal:define="member python:mtool.getHomeFolder(memberid);
73                 membername member/NiceName | nothing;
74                 member_url member/absolute_url | nothing">
75                 <a href="#" tal:attributes="href member_url" tal:content="membername"> name </a>
76             </li>
77        </tal:listing>
78        <tal:toomuch condition="python: n_mem>399">
79             <li>
80                 <a href="#" tal:attributes="href list_members" tal:content="python: '%s members in this group' % n_mem"> n members </a>           
81             </li>
82        </tal:toomuch>
83    </ul>
84</div>
85
86<div class="tb-portlet" tal:condition="blogobj/links" metal:define-macro="group_links">
87    <div class="portlet-title">
88    <img src="transparent.png" alt="" class="smallicon" />
89    Blogroll
90    </div>
91
92    <metal:fieldMacro use-macro="python:blogobj.widget('links',mode='view')"/>
93</div>
94
95<div class="tb-portlet">
96    <div class="portlet-title">
97    <img src="transparent.png" alt="" class="smallicon" />
98    RSS feeds
99    </div>
100    <ul>
101        <li><a href="TODO">Posts</li>
102        <li><a href="TODO">Comments</li>
103    </ul>
104</div>
105
106</div>
107</body>
108</html>
109
110
Note: See TracBrowser for help on using the repository browser.