annotate zpt/www/main_template.zpt @ 5:9e720c6c5b6c

working on start page.
author casties
date Tue, 12 Feb 2013 18:15:05 +0100
parents 1a895905f7ca
children 9e4dba0a81e2
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
9e720c6c5b6c working on start page.
casties
parents: 4
diff changeset
3 <html xmlns="http://www.w3.org/1999/xhtml" metal:define-macro="page"
9e720c6c5b6c working on start page.
casties
parents: 4
diff changeset
4 tal:define="root here/MPIWGrootURL|here/en/MPIWGrootURL;
2
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
5 crumbs template/getBreadcrumbs | nothing;
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
6 section here/getSection | nothing;
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
7 sections here/getSections | nothing;
5
9e720c6c5b6c working on start page.
casties
parents: 4
diff changeset
8 lang here/getLang | nothing;
9e720c6c5b6c working on start page.
casties
parents: 4
diff changeset
9 allsecs python:{'en':{
9e720c6c5b6c working on start page.
casties
parents: 4
diff changeset
10 'institute':'institute',
9e720c6c5b6c working on start page.
casties
parents: 4
diff changeset
11 'staff':'staff',
9e720c6c5b6c working on start page.
casties
parents: 4
diff changeset
12 'research':'research',
9e720c6c5b6c working on start page.
casties
parents: 4
diff changeset
13 'resources':'resources',
9e720c6c5b6c working on start page.
casties
parents: 4
diff changeset
14 'news':'news'},
9e720c6c5b6c working on start page.
casties
parents: 4
diff changeset
15 'de':{
9e720c6c5b6c working on start page.
casties
parents: 4
diff changeset
16 'institute':'institut',
9e720c6c5b6c working on start page.
casties
parents: 4
diff changeset
17 'staff':'mitarbeiter',
9e720c6c5b6c working on start page.
casties
parents: 4
diff changeset
18 'research':'forschung',
9e720c6c5b6c working on start page.
casties
parents: 4
diff changeset
19 'resources':'ressourcen',
9e720c6c5b6c working on start page.
casties
parents: 4
diff changeset
20 'news':'aktuelles'}};
9e720c6c5b6c working on start page.
casties
parents: 4
diff changeset
21 secmap python:allsecs[lang];
2
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
22 subsection python:template.getSubSection(crumbs=crumbs);
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
23 ">
5
9e720c6c5b6c working on start page.
casties
parents: 4
diff changeset
24 <head>
9e720c6c5b6c working on start page.
casties
parents: 4
diff changeset
25 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
9e720c6c5b6c working on start page.
casties
parents: 4
diff changeset
26 <title metal:define-slot="title">Max Planck Institute for the History of Science</title>
9e720c6c5b6c working on start page.
casties
parents: 4
diff changeset
27 <link rel="stylesheet" type="text/css" tal:attributes="href string:$root/mpiwg_css" />
9e720c6c5b6c working on start page.
casties
parents: 4
diff changeset
28 <link rel="shortcut icon" href="http://www.mpiwg-berlin.mpg.de/favicon.ico" />
9e720c6c5b6c working on start page.
casties
parents: 4
diff changeset
29 <tal:block metal:define-slot="head" />
9e720c6c5b6c working on start page.
casties
parents: 4
diff changeset
30 </head>
2
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
31 <body>
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
32 <div tal:condition="exists:here/mpiwg_test" tal:replace="structure here/mpiwg_test" />
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
33 <div id="wrapper">
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
34 <div id="header">
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
35 <div class="title">
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
36 <a tal:attributes="href string:$root/index.html"><img tal:attributes="src string:$root/images/title.png"
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
37 alt="Max Planck Institute for the History of Science" /></a>
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
38 </div>
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
39 <div class="logo">
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
40 <a tal:attributes="href string:$root/index.html"><img tal:attributes="src string:$root/images/logo.png" alt="MPIWG Logo" /></a>
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
41 </div>
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
42 </div>
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
43
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
44 <div id="mainnav">
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
45 <tal:block tal:repeat="sec sections">
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
46 <div tal:attributes="class python:test(sec.getId()==section,'sec on','sec')">
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
47 <a tal:attributes="href sec/absolute_url" tal:content="sec/title">Institute</a>
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
48 </div>
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
49 </tal:block>
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
50 <div class="sec lang">
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
51 <a class="internal" tal:attributes="href string:$root/../de">Deutsch</a>
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
52 </div>
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
53 </div>
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
54
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
55 <div class="content" metal:define-slot="content">
5
9e720c6c5b6c working on start page.
casties
parents: 4
diff changeset
56 <div class="leftbox" metal:define-slot="leftbox">
2
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
57 <div class="subnav" metal:define-slot="subnav">
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
58 <tal:block tal:condition="crumbs" tal:repeat="subnav python:here.subNav(here)">
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
59 <div tal:attributes="class python:test(subnav[0]==subsection,'sn_on','sn_off')">
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
60 <a tal:attributes="href python:subnav[1].absolute_url()" tal:content="python:subnav[1].title">Subnav</a>
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
61 </div>
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
62 </tal:block>
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
63 </div>
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
64 <div class="subnavbox" metal:define-slot="subnavbox"></div>
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
65 </div>
5
9e720c6c5b6c working on start page.
casties
parents: 4
diff changeset
66 <!-- /leftbox -->
2
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
67 <div class="main" metal:define-slot="main">
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
68
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
69 <div class="center" metal:define-slot="center"></div>
5
9e720c6c5b6c working on start page.
casties
parents: 4
diff changeset
70 <!-- /center -->
2
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
71
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
72 <div class="sidebar" metal:define-slot="sidebar"></div>
5
9e720c6c5b6c working on start page.
casties
parents: 4
diff changeset
73 <!-- /sidebar -->
9e720c6c5b6c working on start page.
casties
parents: 4
diff changeset
74
9e720c6c5b6c working on start page.
casties
parents: 4
diff changeset
75 </div>
9e720c6c5b6c working on start page.
casties
parents: 4
diff changeset
76 <!-- /main -->
2
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
77
5
9e720c6c5b6c working on start page.
casties
parents: 4
diff changeset
78 <!-- <div class="footer">
9e720c6c5b6c working on start page.
casties
parents: 4
diff changeset
79 <div class="services">
9e720c6c5b6c working on start page.
casties
parents: 4
diff changeset
80 <div class="serviceprint">
9e720c6c5b6c working on start page.
casties
parents: 4
diff changeset
81 <a href="javascript:window.print()">Print</a>
9e720c6c5b6c working on start page.
casties
parents: 4
diff changeset
82 </div>
9e720c6c5b6c working on start page.
casties
parents: 4
diff changeset
83 <div class="serviceforward">
9e720c6c5b6c working on start page.
casties
parents: 4
diff changeset
84 <a tal:attributes="href python:'mailto:?subject=MPIWG%%20%s&body=%s'%(here.title,here.absolute_url())">Forward</a>
2
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
85 </div>
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
86 </div>
5
9e720c6c5b6c working on start page.
casties
parents: 4
diff changeset
87 </div> -->
2
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
88 <div class="boilerplate">
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
89 <div class="legal">
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
90 <a tal:attributes="href string:$root/resources/intranet.html">Intranet</a> | <a href="https://webmail.mpiwg-berlin.mpg.de"
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
91 target="_blank">Webmail</a> | <a tal:attributes="href string:$root/institute/address.html">Contact</a> | <a
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
92 tal:attributes="href string:$root/impressum.html">Imprint</a> | <a
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
93 tal:attributes="href python:'http://www2.mpiwg-berlin.mpg.de/Library/libindex.html'" target="_blank">Library
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
94 (internal)</a> | <a tal:attributes="href string:$root/institute/sitemap.html">Sitemap</a>
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
95 </div>
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
96 <div class="mpg_signet">
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
97 <a href="http://www.mpg.de/"> <img tal:attributes="src string:$root/images/signet.png" alt="MPG" width="204"
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
98 height="41" />
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
99 </a>
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
100 </div>
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
101 </div>
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
102 <!-- boilerplate -->
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
103 </div>
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
104 <!-- content -->
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
105 </div>
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
106 <!-- wrapper -->
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
107 </body>
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
108 </html>