source: WAeUP_SRP/branches/regebro-noskins/skins/waeup_design/main_template_orig.pt @ 1522

Last change on this file since 1522 was 1522, checked in by lregebro, 18 years ago

The skinless design.

  • Property svn:eol-style set to native
File size: 3.4 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              can_raise python:mtool.assertViewable(here);
6              utool nocall:here/portal_url;
7              atool here/portal_actions;
8              ttool here/portal_trees;
9              wtool here/portal_workflow;
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">
25<metal:block define-slot="doctype"><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"></metal:block>
26  <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"
27   tal:attributes="lang locale;
28                   xml:lang locale">
29    <head>
30      <metal:block use-macro="here/header_lib_header/macros/header|here/header_lib/macros/header">
31        <metal:block fill-slot="base"><metal:block define-slot="base"><base
32         href="" tal:attributes="href string:${here_url}/"
33        /></metal:block></metal:block>
34        <metal:block fill-slot="head_slot"><metal:block define-slot="head_slot"
35        /></metal:block>
36        <metal:block fill-slot="style_slot"><metal:block define-slot="style_slot"
37        /></metal:block>
38        <metal:block fill-slot="javascript_head_slot"><metal:block
39        define-slot="javascript_head_slot"
40        /></metal:block>
41      </metal:block>
42    </head>
43    <body tal:condition="emptybody"
44    tal:attributes="onload here/getOnLoad|string:setFocus();">
45      <metal:block define-slot="body" />
46      <metal:block define-slot="main" />
47    </body>
48    <body tal:condition="not:emptybody"
49    tal:attributes="onload here/getOnLoad|string:setFocus();">
50
51      <metal:block
52        use-macro="here/generic_lib_portal_message/macros/portal_message|here/generic_lib/macros/portal_message" />
53      <metal:block define-slot="header" />
54      <metal:block define-slot="main" />
55      <metal:block define-slot="sub" />
56     
57      <div id="portlets"
58        tal:define="ptool context/portal_cpsportlets;
59                    slots python:ptool.getProperty('default_slots');
60                    slots python:slots or ptool.listPortletSlots();">
61        <div tal:repeat="slot slots"
62          tal:attributes="id slot">
63          <div style="color:red" tal:content="slot"/>
64          <div tal:repeat="portlet python:ptool.getPortlets(context=context, slot=slot)">
65            <div style="color:blue" tal:content="portlet/absolute_url"/>
66            <p tal:content="structure python:portlet.render(context_obj=context, portlet=portlet, boxedit=None)"/>
67          </div>
68        </div>
69      </div>
70     
71    </body>
72  </html>
73</metal:block>
Note: See TracBrowser for help on using the repository browser.