source: trunk/skins/lemill_eun/global_personalbar.pt @ 314

Revision 314, 1.5 KB checked in by hans, 14 years ago (diff)

First step towards singular user experience

Line 
1<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"
2      i18n:domain="plone">
3
4<body>
5
6<!-- THE PERSONAL BAR DEFINITION -->
7
8<div metal:define-macro="personal_bar"
9      tal:define="display_actions python:user_actions[:-1]+global_actions+user_actions[-1:];
10                  getIconFor nocall:putils/getIconFor;"
11      tal:omit-tag="">
12
13<ul id="tb-portal-personaltools">
14    <li class="portalUser"
15    tal:condition="not: isAnon">
16        Welcome <a class="visualCaseSensitive"
17            tal:content="user/getUserName"
18            tal:attributes="href member/getHomeFolder/absolute_url | portal/community/my_page"
19            href="my_page">
20             John
21        </a>
22    <!--/a--></li>
23    <tal:actions tal:repeat="action python:here.getOrderedUserActions(keyed_actions=keyed_actions)">
24    <li tal:condition="python:action['id'] not in ['undo','preferences','mystuff']"
25            tal:define="icon python:getIconFor(action['category'], action['id'], None);
26                        class_name string:actionicon-${action/category}-${action/id};
27                        class_name python:test(icon, class_name, nothing);"
28            tal:attributes="class class_name">
29            <a href=""
30               tal:attributes="href action/url;
31                               class python:test(icon, 'visualIconPadding', nothing);">
32               <tal:actionname i18n:translate="" tal:content="action/name">dummy</tal:actionname>
33            </a>
34        </li>
35    </tal:actions>
36
37</ul>
38</div>
39
40</body>
41</html>
Note: See TracBrowser for help on using the repository browser.