Mercurial > hg > MPIWGWeb
annotate zpt/www/main_template.zpt @ 284:1a103b073c72 default tip
make favicon url host and schema relative.
author | casties |
---|---|
date | Thu, 25 Jun 2015 17:44:57 +0200 |
parents | 690d5dea34bd |
children |
rev | line source |
---|---|
2 | 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" |
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
5 | 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 | 6 section here/getSection | nothing; |
7 sections here/getSections | nothing; | |
252
e5b444dab055
add $langroot for absolute urls for switching en<->de
casties
parents:
248
diff
changeset
|
8 lang here/getLang | nothing; langroot python:here.getMPIWGRoot().aq_parent.absolute_url(); |
5 | 9 allsecs python:{'en':{ |
10 'institute':'institute', | |
11 'staff':'staff', | |
12 'research':'research', | |
13 'resources':'resources', | |
14 'news':'news'}, | |
15 'de':{ | |
16 'institute':'institut', | |
17 'staff':'mitarbeiter', | |
18 'research':'forschung', | |
19 'resources':'ressourcen', | |
20 'news':'aktuelles'}}; | |
21 secmap python:allsecs[lang]; | |
2 | 22 "> |
5 | 23 <head> |
24 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
25 <title metal:define-slot="title">Max Planck Institute for the History of Science</title> | |
26 <link rel="stylesheet" type="text/css" tal:attributes="href string:$root/mpiwg_css" /> | |
284 | 27 <link rel="shortcut icon" href="/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> |
232 | 30 <!-- Piwik --> |
31 <script type="text/javascript"> | |
32 var _paq = _paq || []; | |
33 _paq.push(["trackPageView"]); | |
34 _paq.push(["enableLinkTracking"]); | |
35 (function() { | |
36 var u=(("https:" == document.location.protocol) ? "https" : "http") + "://piwik.mpiwg-berlin.mpg.de/"; | |
37 _paq.push(["setTrackerUrl", u+"piwik.php"]); | |
38 _paq.push(["setSiteId", "1"]); | |
39 var d=document, g=d.createElement("script"), s=d.getElementsByTagName("script")[0]; g.type="text/javascript"; | |
40 g.defer=true; g.async=true; g.src=u+"piwik.js"; s.parentNode.insertBefore(g,s); | |
41 })(); | |
42 </script> | |
43 <!-- End Piwik Code --> | |
5 | 44 <tal:block metal:define-slot="head" /> |
45 </head> | |
2 | 46 <body> |
47 <div tal:condition="exists:here/mpiwg_test" tal:replace="structure here/mpiwg_test" /> | |
48 <div id="wrapper"> | |
49 <div id="header"> | |
50 <div class="title"> | |
51 <a tal:attributes="href string:$root/index.html"><img tal:attributes="src string:$root/images/title.png" | |
52 alt="Max Planck Institute for the History of Science" /></a> | |
53 </div> | |
54 <div class="logo"> | |
55 <a tal:attributes="href string:$root/index.html"><img tal:attributes="src string:$root/images/logo.png" alt="MPIWG Logo" /></a> | |
56 </div> | |
57 </div> | |
58 | |
59 <div id="mainnav"> | |
6 | 60 <ul> |
61 <li tal:repeat="sec sections" tal:attributes="class python:test(sec.getId()==section,'sec on','sec')"><a | |
62 tal:attributes="href sec/absolute_url" tal:content="sec/title">Institute</a></li> | |
252
e5b444dab055
add $langroot for absolute urls for switching en<->de
casties
parents:
248
diff
changeset
|
63 <li class="sec lang" tal:condition="python:lang=='en'"><a class="internal" tal:attributes="href string:$langroot/de/index.html">Deutsch</a></li> |
e5b444dab055
add $langroot for absolute urls for switching en<->de
casties
parents:
248
diff
changeset
|
64 <li class="sec lang" tal:condition="python:lang=='de'"><a class="internal" tal:attributes="href string:$langroot/en/index.html">English</a></li> |
6 | 65 </ul> |
2 | 66 </div> |
67 | |
8 | 68 <div id="breadcrumbs" metal:define-slot="breadcrumbs"> |
69 <a tal:attributes="href root">Home</a> > | |
70 <tal:block tal:repeat="crumb crumbs | nothing"> | |
71 <tal:block tal:condition="not:repeat/crumb/end"> | |
191
90d44df497a6
updated breadcrumb handling, works for members now.
casties
parents:
176
diff
changeset
|
72 <a tal:attributes="href crumb/url; title crumb/title|nothing;" tal:content="crumb/text">News</a> > |
8 | 73 </tal:block> |
74 <tal:block tal:condition="repeat/crumb/end"> | |
191
90d44df497a6
updated breadcrumb handling, works for members now.
casties
parents:
176
diff
changeset
|
75 <span class="selected"> <a tal:attributes="href crumb/url; title crumb/title|nothing;" tal:content="crumb/text">News</a> |
8 | 76 </span> |
77 </tal:block> | |
78 </tal:block> | |
79 </div> | |
80 | |
81 <div id="mainrow" metal:define-slot="mainrow"> | |
5 | 82 <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
|
83 <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
|
84 tal:define="subsection python:template.getSubSection(crumbs=crumbs);"> |
8 | 85 <ul tal:condition="crumbs"> |
10 | 86 <li tal:repeat="subnav python:here.getSubsections(here)" |
8 | 87 tal:attributes="class python:test(subnav[0]==subsection,'sn_on','sn_off')"><a |
88 tal:attributes="href python:subnav[1].absolute_url()" tal:content="python:subnav[1].title">Subnav</a></li> | |
89 </ul> | |
2 | 90 </div> |
91 <div class="subnavbox" metal:define-slot="subnavbox"></div> | |
150 | 92 </div><!-- /leftbox --> |
93 | |
6 | 94 <div class="main content" metal:define-slot="main"> |
2 | 95 |
150 | 96 <div class="center" metal:define-slot="center"></div><!-- /center --> |
2 | 97 |
150 | 98 </div><!-- /main --> |
8 | 99 |
150 | 100 <metal:block metal:define-slot="sidebar" /><!-- /sidebar --> |
8 | 101 |
150 | 102 </div><!-- /maincontent --> |
260 | 103 |
104 <metal:block metal:define-slot="subrow"/> | |
2 | 105 |
157 | 106 <div id="footservices"> |
107 <div class="text"> | |
108 <a href="#top" class="jumptop">Top</a> | |
109 </div> | |
110 <div class="icons"> | |
111 <a class="javascriptonly" href="javascript:window.print()" title="Print this page"> | |
112 <img alt="" tal:attributes="src string:$root/images/print.png"/> | |
113 Print | |
114 </a> | |
115 <a tal:attributes="href python:'mailto:?subject=MPIWG%%20%s&body=%s'%(here.title,here.absolute_url())" title="Forward as email"> | |
116 <img alt="" tal:attributes="src string:$root/images/forward.png"/> | |
117 Forward | |
118 </a> | |
119 </div> | |
120 </div> | |
8 | 121 <div id="footer"> |
161 | 122 <div class="text" tal:condition="python:lang=='de'"> |
173 | 123 <a href="http://intranet.mpiwg-berlin.mpg.de" target="_blank">Intranet</a> |
161 | 124 | <a href="https://webmail.mpiwg-berlin.mpg.de" target="_blank">Webmail</a> |
125 | <a href="http://www2.mpiwg-berlin.mpg.de/Library/libindex.html" target="_blank">Bibliothek (intern)</a> | |
266 | 126 | <a href="https://webcal.mpiwg-berlin.mpg.de" target="_blank">Veranstaltungen (intern)</a> |
176 | 127 | <a tal:attributes="href string:$root/institut/overview.html">Überblick</a> |
161 | 128 | <a tal:attributes="href string:$root/institut/adresse.html">Kontakt</a> |
248 | 129 | <a tal:attributes="href string:$root/impressum.html">Impressum</a> |
130 | <a tal:attributes="href string:$root/institut/lizenzen.html">Lizenzen</a> | |
161 | 131 </div> |
132 <div class="text" tal:condition="python:lang!='de'"> | |
173 | 133 <a href="http://intranet.mpiwg-berlin.mpg.de" target="_blank">Intranet</a> |
157 | 134 | <a href="https://webmail.mpiwg-berlin.mpg.de" target="_blank">Webmail</a> |
135 | <a href="http://www2.mpiwg-berlin.mpg.de/Library/libindex.html" target="_blank">Library (internal)</a> | |
266 | 136 | <a href="https://webcal.mpiwg-berlin.mpg.de" target="_blank">Events (internal)</a> |
173 | 137 | <a tal:attributes="href string:$root/institute/overview.html">Overview</a> |
157 | 138 | <a tal:attributes="href string:$root/institute/address.html">Contact</a> |
248 | 139 | <a tal:attributes="href string:$root/impressum.html">Imprint</a> |
140 | <a tal:attributes="href string:$root/institute/licences.html">Licences</a> | |
2 | 141 </div> |
6 | 142 <div class="logo"> |
143 <a href="http://www.mpg.de/"> <img tal:attributes="src string:$root/images/signet.png" alt="MPG" width="204" height="41" /> | |
144 </a> | |
145 </div> | |
232 | 146 <noscript> |
147 <!-- Piwik Image Tracker --> | |
148 <img src="http://piwik.mpiwg-berlin.mpg.de/piwik.php?idsite=1&rec=1" style="border:0" alt="" /> | |
149 </noscript> | |
148 | 150 </div><!-- /footer --> |
150 | 151 |
148 | 152 <div id="bookmarks" metal:define-slot="bookmarks"> |
161 | 153 <div class="bookmark" tal:condition="python:lang=='de'"> |
154 <a tal:attributes="href string:$root/${secmap/resources}/">Quellen <img tal:attributes="src string:$root/images/sources_small.png"/></a> | |
155 </div> | |
156 <div class="bookmark" tal:condition="python:lang!='de'"> | |
148 | 157 <a tal:attributes="href string:$root/${secmap/resources}/">Sources <img tal:attributes="src string:$root/images/sources_small.png"/></a> |
158 </div> | |
161 | 159 <div class="bookmark" tal:condition="python:lang=='de'"> |
160 <a tal:attributes="href string:$root/${secmap/research}/thesaurus/show_de.html">Schlagworte <img tal:attributes="src string:$root/images/thesaurus_small.png"/></a> | |
161 </div> | |
162 <div class="bookmark" tal:condition="python:lang!='de'"> | |
150 | 163 <a tal:attributes="href string:$root/${secmap/research}/thesaurus/show_en.html">Keywords <img tal:attributes="src string:$root/images/thesaurus_small.png"/></a> |
164 </div> | |
161 | 165 <div class="bookmark" tal:condition="python:lang=='de'"> |
166 <a tal:attributes="href string:$root/${secmap/institute}/search/search_de.html">Suche <img tal:attributes="src string:$root/images/search_small.png"/></a> | |
167 </div> | |
168 <div class="bookmark" tal:condition="python:lang!='de'"> | |
150 | 169 <a tal:attributes="href string:$root/${secmap/institute}/search/search_en.html">Search <img tal:attributes="src string:$root/images/search_small.png"/></a> |
170 </div> | |
171 </div><!-- /bookmarks --> | |
148 | 172 </div><!-- /wrapper --> |
2 | 173 </body> |
174 </html> |