source: WAeUP_SRP/branches/joachim-azax-branch/skins/waeup_design/main_template.pt @ 17154

Last change on this file since 17154 was 1997, checked in by joachim, 17 years ago

starting

File size: 9.7 KB
Line 
1<metal:block define-macro="master"
2  tal:define="showthirdcol showthirdcol|python:1;
3  emptybody emptybody|request/emptybody|nothing;
4  mtool here/portal_membership;
5  utool nocall:here/portal_url;
6  atool here/portal_actions;
7  ttool here/portal_trees;
8  wtool here/portal_workflow;
9  ptool here/portal_cpsportlets;
10  context_url python:here.getContextUrl(utool=utool);
11  here_url here/absolute_url;
12  base_url here/getBaseUrl;
13  member mtool/getAuthenticatedMember;
14  isAnon mtool/isAnonymousUser;
15  isHomeless python:isAnon or member.getProperty('homeless', 0);
16  isHomeless python:(isHomeless == '0' and [0] or [isHomeless])[0];
17  actions python:atool.listFilteredActionsFor(here);
18  wf_state python:wtool.getInfoFor(here,'review_state','');
19  uname python: isAnon and 'Guest' or member.getUserName();
20  checkPerm nocall: mtool/checkPermission;
21  cpsmcat nocall:here/translation_service;
22  locale here/translation_service/getSelectedLanguage;
23  in_ws here/isInWorkspace;
24  waeup_skin here/get_waeup_skin;
25  student_theme python:test(waeup_skin == 'WAeUP_Student',1,0);
26  navigation_slot python:test(student_theme,'student_navigation_slot','navigation_slot');
27  object_tabs python:test(student_theme,'student_object_slot','staff_object_slot');
28 
29  ">
30  <metal:block define-slot="doctype"><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
31    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
32  </metal:block>
33  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
34        lang="en">
35    <head>
36      <metal:block use-macro="here/header_lib_header/macros/header|here/header_lib/macros/header">
37        <metal:block fill-slot="base">
38          <metal:block define-slot="base">
39            <base href=""
40                  tal:attributes="href string:${here_url}/" />
41          </metal:block>
42        </metal:block>
43        <metal:block fill-slot="head_slot">
44          <metal:block define-slot="head_slot" />
45        </metal:block>
46        <metal:block fill-slot="style_slot">
47          <link rel="stylesheet" type="text/css" media="all"
48                tal:attributes="href string:${base_url}common.css" />
49          <link rel="stylesheet" type="text/css" media="all"
50                tal:attributes="href string:${base_url}${waeup_skin}/render.css" />
51          <metal:block define-slot="style_slot" />
52        </metal:block>
53        <metal:block fill-slot="javascript_head_slot">
54          <metal:block define-slot="javascript_head_slot" />
55        </metal:block>
56      </metal:block>
57      <link rel="icon"
58            href="ng.png"
59            tal:attributes="href string:${base_url}ng.png"
60            type="image/png" />
61      <link rel="shortcut icon"
62            href="icons/ng.png"
63            tal:attributes="href string:${base_url}ng.png"
64            type="image/png" />
65    </head>
66    <body tal:condition="emptybody"
67          style="margin: 0px;"
68          tal:attributes="onload here/getOnLoad|string:setFocus();">
69      <metal:block define-slot="body" />
70      <metal:block define-slot="main" />
71    </body>
72   
73    <body tal:condition="not:emptybody"
74          style="margin: 0px;"
75          tal:attributes="onload here/getOnLoad|string:setFocus();">
76     
77     
78      <table summary="Logo Block"
79             style="margin-left: auto; margin-right: auto; width: 100%;"
80             class="shapeNoBorder colorTransparent" cellpadding="0"
81             cellspacing="0">
82        <tbody>
83          <tr>
84            <td style="width: 20px;"></td>
85            <td valign="top" style="width: 120px; padding: 10px 10px 0 0; text-align: right;">
86              <img tal:attributes="src string:${base_url}uniben_mark.jpg"  alt="Logo" />
87            </td>
88            <td style="padding: 27px 0 0 0; text-align: left;" valign="top">
89              <img tal:attributes="src string:${base_url}uniben_logo.gif" alt="Logo" />
90            </td>
91            <td style="width: 20px;"></td>
92          </tr>
93        </tbody>
94      </table>
95
96      <table summary="Navigation Block"
97             style="margin-left: auto; margin-right: auto; width: 100%;"
98             class="shapeNoBorder colorTransparent" cellpadding="0"
99             cellspacing="0">
100        <tbody>
101          <tr>
102            <td style="width: 20px;" valign="top"></td>
103            <td style="" valign="top">
104              <div id="navigation_slot"
105                       style="padding: 0em 0em 1px; text-align: right;"
106                       class="fontColornavigation fontShapenavigation portalTabTabStyle cpsskinsHBox body">
107                 <tal:block repeat="portlet python:ptool.getPortlets(context=context, slot=navigation_slot)"
108                  tal:content="structure python:portlet.render_cache(context_obj=context, portlet=portlet)" />
109              </div>
110            </td>
111            <td style="width: 20px;" valign="top"></td>
112          </tr>
113        </tbody>
114      </table>
115     
116     
117      <table summary="Main Table Block 1"
118           style="margin-left: auto; margin-right: auto; width: 100%;"
119           cellpadding="0" cellspacing="0">
120      <tbody>
121        <tr>
122          <td style="width: 20px;" valign="top"></td>
123          <td style="width: 160px;text-align: center;"
124              valign="top">
125            <div id="portal_session" style="padding: 0.4em 0.4em 0.4em 0.3em;"
126                 class="colorBarAreaColor fontColordefaultnovisitedlinks fontShapeaverage shapeAreaShape9">
127                    <tal:block repeat="portlet python:ptool.getPortlets(context=context, slot='portal_session')"
128                               tal:content="structure python:portlet.render_cache(context_obj=context, portlet=portlet, boxedit=None)" />
129            </div>
130          </td>
131          <td style="text-align: left; padding: 0.2em 0.2em 0em;" class="colorBarColor" valign="top">
132            <metal:block define-slot="action_slot" />
133            <div id="object_tabs" class="fontColornavigation fontShapeaverage cpsskinsHBox body"
134                 tal:define="portlets python:ptool.getPortlets(context=context, slot=object_tabs)">
135                <tal:block repeat="portlet portlets"
136                           tal:content="structure python:portlet.render_cache(context_obj=context, portlet=portlet)" />
137            </div>
138          </td>
139          <td tal:condition="not:student_theme"
140              class="colorBarColor" valign="top" style="text-align: right;padding: 0.2em 0.2em 0em; width: 280px;">
141            <div id="status_slot" class="fontColordefaultfontcolors fontShapeaverage cpsskinsHBox body"
142                 tal:define="portlets python:ptool.getPortlets(context=context, slot='status_slot')">
143                <tal:block repeat="portlet portlets"
144                           tal:content="structure python:portlet.render_cache(context_obj=context, portlet=portlet, boxedit=None)" />
145            </div>
146          </td>
147          <td style="width: 20px;"
148              valign="top"></td>
149        </tr>
150      </tbody>
151    </table>
152 
153 
154 
155    <table summary="Main Table Block 2"
156             style="margin-left: auto; margin-right: auto; width: 100%;"
157             class="" cellpadding="0" cellspacing="0">
158      <tbody>
159        <tr>
160          <td style="width: 20px;" valign="top"></td>
161          <td style="width: 160px;text-align: left;"
162              class="colorBarColor fontColornavigation fontShapeaverage boxShapenavbox cpsskinsBox" valign="top">
163            <div id="staff_actions_slot" class="body" style="padding: 1.5em 0.5em 1.5em 0.5em;">
164              <tal:block tal:condition="not:student_theme" repeat="portlet python:ptool.getPortlets(context=context, slot='staff_actions_slot')"
165                         tal:content="structure python:portlet.render_cache(context_obj=context, portlet=portlet, boxedit=None)" />
166              <tal:block tal:condition="not:student_theme" repeat="portlet python:ptool.getPortlets(context=context, slot='global_actions_slot')"
167                         tal:content="structure python:portlet.render_cache(context_obj=context, portlet=portlet, boxedit=None)" />
168              <tal:block tal:condition="student_theme" repeat="portlet python:ptool.getPortlets(context=context, slot='student_actions_slot')"
169                         tal:content="structure python:portlet.render_cache(context_obj=context, portlet=portlet, boxedit=None)" />
170              <span tal:condition="student_theme">
171
172
173              <div style="padding: 0em;">
174                <tal:block repeat="portlet python:ptool.getPortlets(context=context, slot='student_workflow')"
175                             tal:content="structure python:portlet.render_cache(context_obj=context, portlet=portlet, boxedit=None)" />
176              </div>
177
178              </span>                         
179            </div>
180          </td>
181          <td style="" class="shapeAreaShape5 colorBarAreaColor" valign="top">
182            <div style="padding: 0.5em; text-align: left;" class="fontColordefaultfontcolors fontShapeaverage">
183              <metal:block use-macro="here/generic_lib_portal_message/macros/portal_message" />
184              <metal:block define-slot="header" />
185              <metal:block define-slot="main" />
186              <metal:block define-slot="sub" />
187            </div>
188          </td>
189          <td style="width: 20px;" valign="top"></td>
190        </tr>
191      </tbody>
192    </table>
193   
194   
195    <table summary="Copyright Info Block"
196             style="margin-left: auto; margin-right: auto; width: 100%;"
197             cellspacing="0">
198        <tbody>
199          <tr>
200            <td style="width: 20px;" valign="top"></td>
201            <td style="padding: 0.2em; text-align: right;" valign="top">
202              <div class="fontColordefaultfontcolors fontShapeaverage">
203              Copyright WAeUP Group 2007</div>
204            </td>
205            <td style="width: 20px;" valign="top"></td>
206          </tr>
207        </tbody>
208    </table>
209    </body>
210  </html>
211</metal:block>
Note: See TracBrowser for help on using the repository browser.