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

Revision 1693, 2.6 KB checked in by pjotr, 12 years ago (diff)

Fixed links for adding resources to always take into the right place.

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    <img src="transparent.png" alt="" class="smallicon" />
10    <a class="linkonbackground" href="#" target="_new" tal:attributes="href irc_link" i18n:translate="join_lemill_chat">Join LeMill chat...</a>
11    </div>
12</div>
13
14<div class="tb-portlet">
15    <div class="portlet-title">
16    <a href="#" tal:attributes="href python:test(isAnon, 'login_form','%s/community/group_create' % portal_url)" class="linkonbackground"><img src="images/new_group.png" alt="" class="smallicon" border="0" />
17    <span i18n:translate="label_new_group">New group</span></a>
18    </div>
19</div>               
20
21<tal:block tal:condition="not:isAnon">
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.