annotate zpt/www/main_template.zpt @ 66:68b3d71eed27

formatting for preprint list. javascript for foldable divs.
author casties
date Fri, 03 May 2013 22:10:10 +0200
parents c711fe75d0ac
children 782477730916
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" />
66
68b3d71eed27 formatting for preprint list. javascript for foldable divs.
casties
parents: 10
diff changeset
29 <script type="text/javascript" tal:attributes="src string:$root/jquery_js"></script>
68b3d71eed27 formatting for preprint list. javascript for foldable divs.
casties
parents: 10
diff changeset
30 <script type="text/javascript" tal:attributes="src string:$root/mpiwg_js"></script>
5
9e720c6c5b6c working on start page.
casties
parents: 4
diff changeset
31 <tal:block metal:define-slot="head" />
9e720c6c5b6c working on start page.
casties
parents: 4
diff changeset
32 </head>
2
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
33 <body>
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
34 <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
35 <div id="wrapper">
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
36 <div id="header">
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
37 <div class="title">
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
38 <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
39 alt="Max Planck Institute for the History of Science" /></a>
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
40 </div>
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
41 <div class="logo">
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
42 <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
43 </div>
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
44 </div>
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
45
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
46 <div id="mainnav">
6
9e4dba0a81e2 front page layout works now.
casties
parents: 5
diff changeset
47 <ul>
9e4dba0a81e2 front page layout works now.
casties
parents: 5
diff changeset
48 <li tal:repeat="sec sections" tal:attributes="class python:test(sec.getId()==section,'sec on','sec')"><a
9e4dba0a81e2 front page layout works now.
casties
parents: 5
diff changeset
49 tal:attributes="href sec/absolute_url" tal:content="sec/title">Institute</a></li>
9e4dba0a81e2 front page layout works now.
casties
parents: 5
diff changeset
50 <li class="sec lang"><a class="internal" tal:attributes="href string:$root/../de">Deutsch</a></li>
9e4dba0a81e2 front page layout works now.
casties
parents: 5
diff changeset
51 </ul>
2
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
8
0a7691055ea3 layout now with table-cell.
casties
parents: 6
diff changeset
54 <div id="breadcrumbs" metal:define-slot="breadcrumbs">
0a7691055ea3 layout now with table-cell.
casties
parents: 6
diff changeset
55 <a tal:attributes="href root">Home</a> &gt;
0a7691055ea3 layout now with table-cell.
casties
parents: 6
diff changeset
56 <tal:block tal:repeat="crumb crumbs | nothing">
0a7691055ea3 layout now with table-cell.
casties
parents: 6
diff changeset
57 <tal:block tal:condition="not:repeat/crumb/end">
0a7691055ea3 layout now with table-cell.
casties
parents: 6
diff changeset
58 <a tal:attributes="href python:crumb[1]" tal:content="python:crumb[0]">News</a> &gt;
0a7691055ea3 layout now with table-cell.
casties
parents: 6
diff changeset
59 </tal:block>
0a7691055ea3 layout now with table-cell.
casties
parents: 6
diff changeset
60 <tal:block tal:condition="repeat/crumb/end">
0a7691055ea3 layout now with table-cell.
casties
parents: 6
diff changeset
61 <span class="selected"> <a tal:attributes="href python:crumb[1]" tal:content="python:crumb[0]">News</a>
0a7691055ea3 layout now with table-cell.
casties
parents: 6
diff changeset
62 </span>
0a7691055ea3 layout now with table-cell.
casties
parents: 6
diff changeset
63 </tal:block>
0a7691055ea3 layout now with table-cell.
casties
parents: 6
diff changeset
64 </tal:block>
0a7691055ea3 layout now with table-cell.
casties
parents: 6
diff changeset
65 </div>
0a7691055ea3 layout now with table-cell.
casties
parents: 6
diff changeset
66
0a7691055ea3 layout now with table-cell.
casties
parents: 6
diff changeset
67 <div id="mainrow" metal:define-slot="mainrow">
5
9e720c6c5b6c working on start page.
casties
parents: 4
diff changeset
68 <div class="leftbox" metal:define-slot="leftbox">
2
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
69 <div class="subnav" metal:define-slot="subnav">
8
0a7691055ea3 layout now with table-cell.
casties
parents: 6
diff changeset
70 <ul tal:condition="crumbs">
10
c711fe75d0ac order by weight form for MPIWGFolder. more cleanup.
casties
parents: 8
diff changeset
71 <li tal:repeat="subnav python:here.getSubsections(here)"
8
0a7691055ea3 layout now with table-cell.
casties
parents: 6
diff changeset
72 tal:attributes="class python:test(subnav[0]==subsection,'sn_on','sn_off')"><a
0a7691055ea3 layout now with table-cell.
casties
parents: 6
diff changeset
73 tal:attributes="href python:subnav[1].absolute_url()" tal:content="python:subnav[1].title">Subnav</a></li>
0a7691055ea3 layout now with table-cell.
casties
parents: 6
diff changeset
74 </ul>
2
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
75 </div>
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
76 <div class="subnavbox" metal:define-slot="subnavbox"></div>
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
77 </div>
5
9e720c6c5b6c working on start page.
casties
parents: 4
diff changeset
78 <!-- /leftbox -->
6
9e4dba0a81e2 front page layout works now.
casties
parents: 5
diff changeset
79 <div class="main content" metal:define-slot="main">
2
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
80
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
81 <div class="center" metal:define-slot="center"></div>
5
9e720c6c5b6c working on start page.
casties
parents: 4
diff changeset
82 <!-- /center -->
2
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
83
5
9e720c6c5b6c working on start page.
casties
parents: 4
diff changeset
84 </div>
9e720c6c5b6c working on start page.
casties
parents: 4
diff changeset
85 <!-- /main -->
8
0a7691055ea3 layout now with table-cell.
casties
parents: 6
diff changeset
86
0a7691055ea3 layout now with table-cell.
casties
parents: 6
diff changeset
87 <metal:block metal:define-slot="sidebar" />
0a7691055ea3 layout now with table-cell.
casties
parents: 6
diff changeset
88 <!-- /sidebar -->
0a7691055ea3 layout now with table-cell.
casties
parents: 6
diff changeset
89
6
9e4dba0a81e2 front page layout works now.
casties
parents: 5
diff changeset
90 </div>
9e4dba0a81e2 front page layout works now.
casties
parents: 5
diff changeset
91 <!-- /maincontent -->
2
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
92
8
0a7691055ea3 layout now with table-cell.
casties
parents: 6
diff changeset
93 <div id="footer">
6
9e4dba0a81e2 front page layout works now.
casties
parents: 5
diff changeset
94 <div class="text">
9e4dba0a81e2 front page layout works now.
casties
parents: 5
diff changeset
95 <a tal:attributes="href string:$root/resources/intranet.html">Intranet</a> | <a href="https://webmail.mpiwg-berlin.mpg.de"
9e4dba0a81e2 front page layout works now.
casties
parents: 5
diff changeset
96 target="_blank">Webmail</a> | <a tal:attributes="href string:$root/institute/address.html">Contact</a> | <a
9e4dba0a81e2 front page layout works now.
casties
parents: 5
diff changeset
97 tal:attributes="href string:$root/impressum.html">Imprint</a> | <a
9e4dba0a81e2 front page layout works now.
casties
parents: 5
diff changeset
98 tal:attributes="href python:'http://www2.mpiwg-berlin.mpg.de/Library/libindex.html'" target="_blank">Library
9e4dba0a81e2 front page layout works now.
casties
parents: 5
diff changeset
99 (internal)</a> | <a tal:attributes="href string:$root/institute/sitemap.html">Sitemap</a>
2
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
100 </div>
6
9e4dba0a81e2 front page layout works now.
casties
parents: 5
diff changeset
101 <div class="logo">
9e4dba0a81e2 front page layout works now.
casties
parents: 5
diff changeset
102 <a href="http://www.mpg.de/"> <img tal:attributes="src string:$root/images/signet.png" alt="MPG" width="204" height="41" />
9e4dba0a81e2 front page layout works now.
casties
parents: 5
diff changeset
103 </a>
9e4dba0a81e2 front page layout works now.
casties
parents: 5
diff changeset
104 </div>
2
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
105 </div>
6
9e4dba0a81e2 front page layout works now.
casties
parents: 5
diff changeset
106 <!-- /footer -->
2
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
107 </div>
6
9e4dba0a81e2 front page layout works now.
casties
parents: 5
diff changeset
108 <!-- /wrapper -->
2
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
109 </body>
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
110 </html>