NCCOOS Trac Projects: Top | Web | Platforms | Processing | Viz | Sprints | Sandbox | (Wind)

root/NCCOOSSite/trunk/NCCOOSite/skins/nccoos/comb_personalbar_siteactions.pt

Revision 13 (checked in by cbc, 17 years ago)

Initial import

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 <h5 class="hiddenStructure" i18n:translate="heading_personal_tools">Personal tools</h5>
14
15 <ul id="portal-personaltools">
16     <li class="portalUser"
17         tal:condition="not: isAnon"><a
18         id="user-name"
19         tal:omit-tag="not: mtool/getHomeFolder"
20         tal:attributes="href string:${mtool/getHomeUrl}">
21         <span class="visualCaseSensitive"
22               tal:replace="user/getUserName">
23              John
24         </span>
25     </a></li>
26
27     <tal:siteactions define="site_actions actions/site_actions|nothing;
28                              getIconFor nocall:putils/getIconFor;
29                              accesskeys python: {'sitemap' : '3', 'accessibility' : '0', 'contact' : '9'};"
30                      condition="site_actions">
31
32          <li tal:repeat="saction site_actions"
33              tal:attributes="id string:siteaction-${saction/id}">
34              <a href=""
35                 tal:define="title saction/name;
36                             id saction/id;
37                             accesskey python: accesskeys.get(id, '');"
38                 i18n:attributes="title"
39                 i18n:translate=""
40                 tal:content="title"
41                 tal:attributes="href saction/url;
42                                 title title;
43                                 accesskey accesskey;">
44                Site action
45              </a>
46          </li>
47     </tal:siteactions>
48
49     <tal:actions tal:repeat="action python:here.getOrderedUserActions(keyed_actions=keyed_actions)">
50         <li tal:define="icon python:getIconFor(action['category'], action['id'], None);
51                         class_name string:actionicon-${action/category}-${action/id};
52                         class_name python:test(icon, class_name, nothing);"
53             tal:attributes="class class_name">
54             <a href=""
55                tal:attributes="href action/url;
56                                class python:test(icon, 'visualIconPadding', nothing);">
57                <tal:actionname i18n:translate="" tal:content="action/name">dummy</tal:actionname>
58             </a>
59         </li>
60     </tal:actions>
61
62 </ul>
63 </div>
64
65 </body>
66 </html>
Note: See TracBrowser for help on using the browser.