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

Revision 1328, 2.1 KB checked in by pjotr, 13 years ago (diff)

References #1122, now the symbols are in front for both contacts portlets

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