Mercurial > hg > MPIWGWeb
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 |
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" |
4 tal:define="root here/MPIWGrootURL|here/en/MPIWGrootURL; | |
2 | 5 crumbs template/getBreadcrumbs | nothing; |
6 section here/getSection | nothing; | |
7 sections here/getSections | nothing; | |
5 | 8 lang here/getLang | nothing; |
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 subsection python:template.getSubSection(crumbs=crumbs); |
23 "> | |
5 | 24 <head> |
25 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
26 <title metal:define-slot="title">Max Planck Institute for the History of Science</title> | |
27 <link rel="stylesheet" type="text/css" tal:attributes="href string:$root/mpiwg_css" /> | |
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 | 31 <tal:block metal:define-slot="head" /> |
32 </head> | |
2 | 33 <body> |
34 <div tal:condition="exists:here/mpiwg_test" tal:replace="structure here/mpiwg_test" /> | |
35 <div id="wrapper"> | |
36 <div id="header"> | |
37 <div class="title"> | |
38 <a tal:attributes="href string:$root/index.html"><img tal:attributes="src string:$root/images/title.png" | |
39 alt="Max Planck Institute for the History of Science" /></a> | |
40 </div> | |
41 <div class="logo"> | |
42 <a tal:attributes="href string:$root/index.html"><img tal:attributes="src string:$root/images/logo.png" alt="MPIWG Logo" /></a> | |
43 </div> | |
44 </div> | |
45 | |
46 <div id="mainnav"> | |
6 | 47 <ul> |
48 <li tal:repeat="sec sections" tal:attributes="class python:test(sec.getId()==section,'sec on','sec')"><a | |
49 tal:attributes="href sec/absolute_url" tal:content="sec/title">Institute</a></li> | |
50 <li class="sec lang"><a class="internal" tal:attributes="href string:$root/../de">Deutsch</a></li> | |
51 </ul> | |
2 | 52 </div> |
53 | |
8 | 54 <div id="breadcrumbs" metal:define-slot="breadcrumbs"> |
55 <a tal:attributes="href root">Home</a> > | |
56 <tal:block tal:repeat="crumb crumbs | nothing"> | |
57 <tal:block tal:condition="not:repeat/crumb/end"> | |
58 <a tal:attributes="href python:crumb[1]" tal:content="python:crumb[0]">News</a> > | |
59 </tal:block> | |
60 <tal:block tal:condition="repeat/crumb/end"> | |
61 <span class="selected"> <a tal:attributes="href python:crumb[1]" tal:content="python:crumb[0]">News</a> | |
62 </span> | |
63 </tal:block> | |
64 </tal:block> | |
65 </div> | |
66 | |
67 <div id="mainrow" metal:define-slot="mainrow"> | |
5 | 68 <div class="leftbox" metal:define-slot="leftbox"> |
2 | 69 <div class="subnav" metal:define-slot="subnav"> |
8 | 70 <ul tal:condition="crumbs"> |
10 | 71 <li tal:repeat="subnav python:here.getSubsections(here)" |
8 | 72 tal:attributes="class python:test(subnav[0]==subsection,'sn_on','sn_off')"><a |
73 tal:attributes="href python:subnav[1].absolute_url()" tal:content="python:subnav[1].title">Subnav</a></li> | |
74 </ul> | |
2 | 75 </div> |
76 <div class="subnavbox" metal:define-slot="subnavbox"></div> | |
77 </div> | |
5 | 78 <!-- /leftbox --> |
6 | 79 <div class="main content" metal:define-slot="main"> |
2 | 80 |
81 <div class="center" metal:define-slot="center"></div> | |
5 | 82 <!-- /center --> |
2 | 83 |
5 | 84 </div> |
85 <!-- /main --> | |
8 | 86 |
87 <metal:block metal:define-slot="sidebar" /> | |
88 <!-- /sidebar --> | |
89 | |
6 | 90 </div> |
91 <!-- /maincontent --> | |
2 | 92 |
8 | 93 <div id="footer"> |
6 | 94 <div class="text"> |
95 <a tal:attributes="href string:$root/resources/intranet.html">Intranet</a> | <a href="https://webmail.mpiwg-berlin.mpg.de" | |
96 target="_blank">Webmail</a> | <a tal:attributes="href string:$root/institute/address.html">Contact</a> | <a | |
97 tal:attributes="href string:$root/impressum.html">Imprint</a> | <a | |
98 tal:attributes="href python:'http://www2.mpiwg-berlin.mpg.de/Library/libindex.html'" target="_blank">Library | |
99 (internal)</a> | <a tal:attributes="href string:$root/institute/sitemap.html">Sitemap</a> | |
2 | 100 </div> |
6 | 101 <div class="logo"> |
102 <a href="http://www.mpg.de/"> <img tal:attributes="src string:$root/images/signet.png" alt="MPG" width="204" height="41" /> | |
103 </a> | |
104 </div> | |
2 | 105 </div> |
6 | 106 <!-- /footer --> |
2 | 107 </div> |
6 | 108 <!-- /wrapper --> |
2 | 109 </body> |
110 </html> |