annotate zpt/www/main_template.zpt @ 191:90d44df497a6

updated breadcrumb handling, works for members now.
author casties
date Wed, 19 Jun 2013 11:52:48 +0200
parents ca6e3873107c
children 76ea03db3426
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"
108
782477730916 CLOSED - # 57: Research/ Research Units: Karussell f?r die Projekte in einem Department
casties
parents: 66
diff changeset
4 tal:define="root here/MPIWGrootURL|here/en/MPIWGrootURL;
191
90d44df497a6 updated breadcrumb handling, works for members now.
casties
parents: 176
diff changeset
5 global crumbs template/getBreadcrumbs | nothing;
2
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 ">
5
9e720c6c5b6c working on start page.
casties
parents: 4
diff changeset
23 <head>
9e720c6c5b6c working on start page.
casties
parents: 4
diff changeset
24 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
9e720c6c5b6c working on start page.
casties
parents: 4
diff changeset
25 <title metal:define-slot="title">Max Planck Institute for the History of Science</title>
9e720c6c5b6c working on start page.
casties
parents: 4
diff changeset
26 <link rel="stylesheet" type="text/css" tal:attributes="href string:$root/mpiwg_css" />
9e720c6c5b6c working on start page.
casties
parents: 4
diff changeset
27 <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
28 <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
29 <script type="text/javascript" tal:attributes="src string:$root/mpiwg_js"></script>
5
9e720c6c5b6c working on start page.
casties
parents: 4
diff changeset
30 <tal:block metal:define-slot="head" />
9e720c6c5b6c working on start page.
casties
parents: 4
diff changeset
31 </head>
2
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
32 <body>
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
33 <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
34 <div id="wrapper">
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
35 <div id="header">
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
36 <div class="title">
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
37 <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
38 alt="Max Planck Institute for the History of Science" /></a>
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
39 </div>
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
40 <div class="logo">
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
41 <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
42 </div>
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
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
45 <div id="mainnav">
6
9e4dba0a81e2 front page layout works now.
casties
parents: 5
diff changeset
46 <ul>
9e4dba0a81e2 front page layout works now.
casties
parents: 5
diff changeset
47 <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
48 tal:attributes="href sec/absolute_url" tal:content="sec/title">Institute</a></li>
155
9e7bc0958fd8 fixed language switcher link.
casties
parents: 150
diff changeset
49 <li class="sec lang" tal:condition="python:lang=='en'"><a class="internal" tal:attributes="href string:$root/../de">Deutsch</a></li>
9e7bc0958fd8 fixed language switcher link.
casties
parents: 150
diff changeset
50 <li class="sec lang" tal:condition="python:lang=='de'"><a class="internal" tal:attributes="href string:$root/../en">English</a></li>
6
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">
191
90d44df497a6 updated breadcrumb handling, works for members now.
casties
parents: 176
diff changeset
58 <a tal:attributes="href crumb/url; title crumb/title|nothing;" tal:content="crumb/text">News</a> &gt;
8
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">
191
90d44df497a6 updated breadcrumb handling, works for members now.
casties
parents: 176
diff changeset
61 <span class="selected"> <a tal:attributes="href crumb/url; title crumb/title|nothing;" tal:content="crumb/text">News</a>
8
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">
108
782477730916 CLOSED - # 57: Research/ Research Units: Karussell f?r die Projekte in einem Department
casties
parents: 66
diff changeset
69 <div class="subnav" metal:define-slot="subnav"
782477730916 CLOSED - # 57: Research/ Research Units: Karussell f?r die Projekte in einem Department
casties
parents: 66
diff changeset
70 tal:define="subsection python:template.getSubSection(crumbs=crumbs);">
8
0a7691055ea3 layout now with table-cell.
casties
parents: 6
diff changeset
71 <ul tal:condition="crumbs">
10
c711fe75d0ac order by weight form for MPIWGFolder. more cleanup.
casties
parents: 8
diff changeset
72 <li tal:repeat="subnav python:here.getSubsections(here)"
8
0a7691055ea3 layout now with table-cell.
casties
parents: 6
diff changeset
73 tal:attributes="class python:test(subnav[0]==subsection,'sn_on','sn_off')"><a
0a7691055ea3 layout now with table-cell.
casties
parents: 6
diff changeset
74 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
75 </ul>
2
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
76 </div>
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
77 <div class="subnavbox" metal:define-slot="subnavbox"></div>
150
7771cdd95398 bookmark tabs.
casties
parents: 148
diff changeset
78 </div><!-- /leftbox -->
7771cdd95398 bookmark tabs.
casties
parents: 148
diff changeset
79
6
9e4dba0a81e2 front page layout works now.
casties
parents: 5
diff changeset
80 <div class="main content" metal:define-slot="main">
2
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
81
150
7771cdd95398 bookmark tabs.
casties
parents: 148
diff changeset
82 <div class="center" metal:define-slot="center"></div><!-- /center -->
2
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
83
150
7771cdd95398 bookmark tabs.
casties
parents: 148
diff changeset
84 </div><!-- /main -->
8
0a7691055ea3 layout now with table-cell.
casties
parents: 6
diff changeset
85
150
7771cdd95398 bookmark tabs.
casties
parents: 148
diff changeset
86 <metal:block metal:define-slot="sidebar" /><!-- /sidebar -->
8
0a7691055ea3 layout now with table-cell.
casties
parents: 6
diff changeset
87
150
7771cdd95398 bookmark tabs.
casties
parents: 148
diff changeset
88 </div><!-- /maincontent -->
2
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
89
157
2e0953694aef page footer
casties
parents: 155
diff changeset
90 <div id="footservices">
2e0953694aef page footer
casties
parents: 155
diff changeset
91 <div class="text">
2e0953694aef page footer
casties
parents: 155
diff changeset
92 <a href="#top" class="jumptop">Top</a>
2e0953694aef page footer
casties
parents: 155
diff changeset
93 </div>
2e0953694aef page footer
casties
parents: 155
diff changeset
94 <div class="icons">
2e0953694aef page footer
casties
parents: 155
diff changeset
95 <a class="javascriptonly" href="javascript:window.print()" title="Print this page">
2e0953694aef page footer
casties
parents: 155
diff changeset
96 <img alt="" tal:attributes="src string:$root/images/print.png"/>
2e0953694aef page footer
casties
parents: 155
diff changeset
97 Print
2e0953694aef page footer
casties
parents: 155
diff changeset
98 </a>
2e0953694aef page footer
casties
parents: 155
diff changeset
99 <a tal:attributes="href python:'mailto:?subject=MPIWG%%20%s&body=%s'%(here.title,here.absolute_url())" title="Forward as email">
2e0953694aef page footer
casties
parents: 155
diff changeset
100 <img alt="" tal:attributes="src string:$root/images/forward.png"/>
2e0953694aef page footer
casties
parents: 155
diff changeset
101 Forward
2e0953694aef page footer
casties
parents: 155
diff changeset
102 </a>
2e0953694aef page footer
casties
parents: 155
diff changeset
103 </div>
2e0953694aef page footer
casties
parents: 155
diff changeset
104 </div>
8
0a7691055ea3 layout now with table-cell.
casties
parents: 6
diff changeset
105 <div id="footer">
161
2b5adc7f5445 english and german footer
casties
parents: 157
diff changeset
106 <div class="text" tal:condition="python:lang=='de'">
173
37bfced67084 updated footer.
casties
parents: 161
diff changeset
107 <a href="http://intranet.mpiwg-berlin.mpg.de" target="_blank">Intranet</a>
161
2b5adc7f5445 english and german footer
casties
parents: 157
diff changeset
108 | <a href="https://webmail.mpiwg-berlin.mpg.de" target="_blank">Webmail</a>
2b5adc7f5445 english and german footer
casties
parents: 157
diff changeset
109 | <a href="http://www2.mpiwg-berlin.mpg.de/Library/libindex.html" target="_blank">Bibliothek (intern)</a>
176
ca6e3873107c fixed footer
casties
parents: 174
diff changeset
110 | <a tal:attributes="href string:$root/institut/overview.html">&Uuml;berblick</a>
161
2b5adc7f5445 english and german footer
casties
parents: 157
diff changeset
111 | <a tal:attributes="href string:$root/institut/adresse.html">Kontakt</a>
2b5adc7f5445 english and german footer
casties
parents: 157
diff changeset
112 | <a tal:attributes="href string:$root/impressum.html">Impressum/Lizenz</a>
2b5adc7f5445 english and german footer
casties
parents: 157
diff changeset
113 </div>
2b5adc7f5445 english and german footer
casties
parents: 157
diff changeset
114 <div class="text" tal:condition="python:lang!='de'">
173
37bfced67084 updated footer.
casties
parents: 161
diff changeset
115 <a href="http://intranet.mpiwg-berlin.mpg.de" target="_blank">Intranet</a>
157
2e0953694aef page footer
casties
parents: 155
diff changeset
116 | <a href="https://webmail.mpiwg-berlin.mpg.de" target="_blank">Webmail</a>
2e0953694aef page footer
casties
parents: 155
diff changeset
117 | <a href="http://www2.mpiwg-berlin.mpg.de/Library/libindex.html" target="_blank">Library (internal)</a>
173
37bfced67084 updated footer.
casties
parents: 161
diff changeset
118 | <a tal:attributes="href string:$root/institute/overview.html">Overview</a>
157
2e0953694aef page footer
casties
parents: 155
diff changeset
119 | <a tal:attributes="href string:$root/institute/address.html">Contact</a>
2e0953694aef page footer
casties
parents: 155
diff changeset
120 | <a tal:attributes="href string:$root/impressum.html">Imprint/Licenses</a>
2
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
121 </div>
6
9e4dba0a81e2 front page layout works now.
casties
parents: 5
diff changeset
122 <div class="logo">
9e4dba0a81e2 front page layout works now.
casties
parents: 5
diff changeset
123 <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
124 </a>
9e4dba0a81e2 front page layout works now.
casties
parents: 5
diff changeset
125 </div>
148
e34232fbe622 first version of bookmark tabs.
casties
parents: 108
diff changeset
126 </div><!-- /footer -->
150
7771cdd95398 bookmark tabs.
casties
parents: 148
diff changeset
127
148
e34232fbe622 first version of bookmark tabs.
casties
parents: 108
diff changeset
128 <div id="bookmarks" metal:define-slot="bookmarks">
161
2b5adc7f5445 english and german footer
casties
parents: 157
diff changeset
129 <div class="bookmark" tal:condition="python:lang=='de'">
2b5adc7f5445 english and german footer
casties
parents: 157
diff changeset
130 <a tal:attributes="href string:$root/${secmap/resources}/">Quellen <img tal:attributes="src string:$root/images/sources_small.png"/></a>
2b5adc7f5445 english and german footer
casties
parents: 157
diff changeset
131 </div>
2b5adc7f5445 english and german footer
casties
parents: 157
diff changeset
132 <div class="bookmark" tal:condition="python:lang!='de'">
148
e34232fbe622 first version of bookmark tabs.
casties
parents: 108
diff changeset
133 <a tal:attributes="href string:$root/${secmap/resources}/">Sources <img tal:attributes="src string:$root/images/sources_small.png"/></a>
e34232fbe622 first version of bookmark tabs.
casties
parents: 108
diff changeset
134 </div>
161
2b5adc7f5445 english and german footer
casties
parents: 157
diff changeset
135 <div class="bookmark" tal:condition="python:lang=='de'">
2b5adc7f5445 english and german footer
casties
parents: 157
diff changeset
136 <a tal:attributes="href string:$root/${secmap/research}/thesaurus/show_de.html">Schlagworte <img tal:attributes="src string:$root/images/thesaurus_small.png"/></a>
2b5adc7f5445 english and german footer
casties
parents: 157
diff changeset
137 </div>
2b5adc7f5445 english and german footer
casties
parents: 157
diff changeset
138 <div class="bookmark" tal:condition="python:lang!='de'">
150
7771cdd95398 bookmark tabs.
casties
parents: 148
diff changeset
139 <a tal:attributes="href string:$root/${secmap/research}/thesaurus/show_en.html">Keywords <img tal:attributes="src string:$root/images/thesaurus_small.png"/></a>
7771cdd95398 bookmark tabs.
casties
parents: 148
diff changeset
140 </div>
161
2b5adc7f5445 english and german footer
casties
parents: 157
diff changeset
141 <div class="bookmark" tal:condition="python:lang=='de'">
2b5adc7f5445 english and german footer
casties
parents: 157
diff changeset
142 <a tal:attributes="href string:$root/${secmap/institute}/search/search_de.html">Suche <img tal:attributes="src string:$root/images/search_small.png"/></a>
2b5adc7f5445 english and german footer
casties
parents: 157
diff changeset
143 </div>
2b5adc7f5445 english and german footer
casties
parents: 157
diff changeset
144 <div class="bookmark" tal:condition="python:lang!='de'">
150
7771cdd95398 bookmark tabs.
casties
parents: 148
diff changeset
145 <a tal:attributes="href string:$root/${secmap/institute}/search/search_en.html">Search <img tal:attributes="src string:$root/images/search_small.png"/></a>
7771cdd95398 bookmark tabs.
casties
parents: 148
diff changeset
146 </div>
7771cdd95398 bookmark tabs.
casties
parents: 148
diff changeset
147 </div><!-- /bookmarks -->
7771cdd95398 bookmark tabs.
casties
parents: 148
diff changeset
148
148
e34232fbe622 first version of bookmark tabs.
casties
parents: 108
diff changeset
149 </div><!-- /wrapper -->
2
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
150 </body>
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
151 </html>