source: WAeUP_SRP/trunk/skins/waeup_default/portlet_session_info.pt @ 348

Last change on this file since 348 was 170, checked in by Henrik Bettermann, 19 years ago

minor modifications

File size: 1.8 KB
Line 
1<tal:block define="mtool here/portal_membership;
2           member mtool/getAuthenticatedMember;
3           isAnon mtool/isAnonymousUser;
4           roles member/getRoles;
5           backend python:'UniversityManager' in roles or 'StudentManager' in roles;
6           frontend python:'Student' in roles or isAnon;"
7           >
8  <tal:block condition="not:isAnon">
9    <tal:block condition="backend">
10      <em tal:content="member" /> is working in back-end mode<br />
11      <span  tal:condition="python: 1" >
12        with Basic Roles <span tal:content="member/getRoles" /><br />
13        <span tal:condition="python: 0" tal:content="python:mtool.getCPSCandidateLocalRoles(context)" />
14      </span>
15    </tal:block>
16    <tal:block condition="not:backend">
17      <em tal:content="member" /> is working in front-end mode<br />
18      <span  tal:condition="python: 1" >
19        with Basic Roles <span tal:content="member/getRoles" /><br />
20        <span tal:condition="python: 0" tal:content="python:mtool.getCPSCandidateLocalRoles(context)" />
21      </span>
22    </tal:block>
23    <tal:block condition="python: 0">
24    <br />
25    <a href="" tal:condition="python: 'Student' in member.getRoles() and not 'UniversityManager' in member.getRoles()"
26       tal:attributes="href string:${context/portal_url}/students/${member}">
27      Go to your personal area
28    </a>
29    </tal:block>
30    <br />
31    <a href="" tal:condition="python: 0"
32       tal:attributes="href string:${context/portal_url}/cpsdirectory_entry_view?dirname=members&id=${member}">       
33      Edit your Preferences
34    </a>
35    <br />
36    <a href="" i18n:translate=""
37       tal:attributes="href string:logout">
38      Log out
39    </a>
40  </tal:block>
41  <tal:block condition="isAnon">
42    <div>You are not logged in. </div>
43    <br />
44    <a href="" tal:attributes="href string:login_form">Log in</a>
45  </tal:block>
46</tal:block>
Note: See TracBrowser for help on using the repository browser.