source: trunk/skins/lemill/portlet_add_community.pt @ 1359

Revision 1359, 2.4 KB checked in by tarmo, 13 years ago (diff)

Added link to IRC. Also started hosting CGI:IRG in
lemill.net. Closes #1143, spent 4h.

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">
6
7<div class="tb-portlet" tal:define="irc_link context/lemill_tool/irc_link|nothing" tal:condition="irc_link">
8    <div class="portlet-title">
9    <a class="linkonbackground" href="#" target="_new" tal:attributes="href irc_link">Join LeMill chat...</a>
10    </div>
11</div>
12
13<tal:block tal:condition="not:isAnon">
14
15<div class="tb-portlet">
16    <div class="portlet-title">
17    <a href="group_create"><img src="images/new_group.png" alt="" class="smallicon" border="0" /></a>
18    <a href="group_create" i18n:translate="label_new_group" class="linkonbackground">New group</a>
19    </div>
20</div>
21
22
23<div class="tb-portlet">
24    <div class="portlet-title">
25    <img src="transparent.png" alt="" class="smallicon" />
26    <tal:block i18n:translate="heading_my_groups">My groups</tal:block>
27    </div>
28
29    <span tal:define="groups python:context.lemill_usertool.getGroupsList(user.getId())">
30        <ul tal:condition="groups" tal:repeat="groupish groups">
31             <li tal:define="groupid groupish/getGroupId;
32                             grouparea python:context.portal_groups.getGroupareaFolder(groupid)">
33                             <a href="#"  tal:attributes="href grouparea/absolute_url"
34                 tal:content="grouparea/TitleOrId">
35                    PLACEHOLDER
36               </a>
37            </li>
38        </ul>
39   
40        <span i18n:translate="text_not_member_of_groups" tal:condition="not:groups">
41        Not member in any groups
42        </span>
43   
44    </span>
45</div>
46
47<div class="tb-portlet">
48    <div class="portlet-title">
49    <img src="transparent.png" alt="" class="smallicon" />
50    <tal:block i18n:translate="heading_my_contacts">My contacts</tal:block>
51    </div>
52
53    <span tal:define="memfolder member/getHomeFolder;
54                      contacts python:memfolder.giveSortedListOfContacts();">
55        <ul tal:condition="contacts" tal:repeat="contact contacts">
56            <li>
57            <a href="#" tal:attributes="href contact/absolute_url"
58                        tal:content="contact/getNicename">
59                            PLACEHOLDER
60            </a>
61            </li>
62        </ul>
63        <span i18n:translate="text_has_no_contacts" tal:condition="not:contacts">
64            Has no contacts
65        </span>
66    </span>
67</div>
68
69</tal:block>
70
71</div>
72</body>
73</html>
74
Note: See TracBrowser for help on using the repository browser.