Mercurial > hg > MPIWGWeb
annotate zpt/project/project_index_html.zpt @ 90:c940af028112
add styles and meta-tags for search.
author | casties |
---|---|
date | Wed, 15 May 2013 18:48:36 +0200 |
parents | zpt/project/project_template.zpt@975a8d88e315 |
children | 45c7b240ee93 |
rev | line source |
---|---|
34 | 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" |
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
3 <html metal:use-macro="here/pro_sec_template/macros/page"> | |
4 <head> | |
5 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
6 <tal:block metal:fill-slot="title"> | |
39 | 7 <title tal:content="string:${here/getNumber} ${here/getProjectTitle}" /> |
34 | 8 </tal:block> |
90 | 9 <tal:block metal:fill-slot="head"> |
10 <meta name="description" content="project"/> | |
11 <tal:block | |
12 tal:define="global proBaseUrl string:$root/${secmap/research}/projects; | |
13 global images here/getImageList; | |
14 global dept here/getDepartmentId;" /> | |
34 | 15 </head> |
16 <body> | |
17 | |
18 <!-- middle column --> | |
80 | 19 <div class="center project" metal:fill-slot="center"> |
20 <!-- version header --> | |
44 | 21 <h2 tal:condition="not:here/isCurrentVersion"> |
22 This is an outdated version of this project! For the current version, please refer to | |
23 <a tal:define="parentUrl python:here.aq_parent.getUrl(baseUrl=proBaseUrl)" | |
24 tal:attributes="href parentUrl" tal:content="parentUrl"/> | |
25 </h2> | |
39 | 26 <tal:x tal:define="started here/getStartedAt" tal:condition="here/isArchivedProject"> |
34 | 27 <p> |
39 | 28 (<span tal:condition="started" tal:content="string:$started-"/><span tal:condition="not:started">Completed:</span> |
29 <span tal:content="here/getCompletedAt"/>) | |
34 | 30 </p> |
31 </tal:x> | |
80 | 32 <!-- /version header --> |
34 | 33 |
90 | 34 <h1 class="mpiwg-title" tal:content="here/getProjectTitle">History of Scientific Objectivity, 18th-19th Cs</h1> |
35 <h3 class="authors mpiwg-authors"> | |
35 | 36 <tal:block tal:repeat="person here/getResponsibleScientistsList"> |
90 | 37 <a class="mpiwg-author" |
38 tal:define="username person/username|nothing; key person/key|nothing;" | |
39 tal:omit-tag="python:not username or not here.getStaffFolder().isActiveMember(key=key)" | |
40 tal:attributes="href string:$root/${secmap/staff}/members/$username" tal:content="person/name"> | |
41 Name of responsible person | |
42 </a><tal:block tal:condition="not:repeat/person/end">, </tal:block> | |
34 | 43 </tal:block> |
80 | 44 </h3> |
34 | 45 |
80 | 46 <h3 class="authors" tal:define="others here/getInvolvedScholars" tal:condition="others"> |
47 Other involved scholars: <span tal:content="structure others">Scholars </span> | |
48 </h3> | |
49 <h3 class="authors" tal:define="partners here/getCooperationPartners" tal:condition="partners"> | |
50 Cooperation Partners: <span tal:content="structure partners">Partners</span> | |
51 </h3> | |
52 | |
53 <div class="description"> | |
54 <!-- inline image --> | |
55 <div class="figure" tal:condition="images" tal:repeat="image python:images"> | |
56 <div class="image"> | |
57 <a tal:condition="image/width" tal:attributes="href python:image.getUrl()+'/showImage'" target="_blank"><img | |
58 tal:attributes="src image/getUrl" alt="" /></a> | |
39 | 59 <pre tal:condition="not:image/width">empty image</pre> |
34 | 60 </div> |
80 | 61 <div class="figcaption" tal:content="structure image/caption">J.-A.-D. Ingres: Mme Moitessier, 1856. Oel/Lw. 120 x 92,1 |
62 cm. London, National Gallery.</div> | |
63 </div> | |
64 <!-- inline image --> | |
65 <div tal:content="structure python:here.getDescription(filter=True)">Project description</div> | |
34 | 66 </div> |
67 | |
68 </div> | |
69 | |
70 <!-- right column --> | |
71 <div class="sidebar" metal:fill-slot="sidebar"> | |
72 | |
39 | 73 <!-- this project is part of --> |
34 | 74 <div class="sideblock" |
39 | 75 tal:define="parents here/getSuperProjects;" tal:condition="parents"> |
34 | 76 <div class="project parent"> |
77 Part of: | |
40 | 78 <a tal:define="parent python:parents[-1]" tal:content="parent/getLabel" |
39 | 79 tal:attributes="href python:parent.getUrl(baseUrl=proBaseUrl)+test(here.isArchivedProject(),'?showArchive=yes','')" /> |
34 | 80 </div> |
81 <!-- end parent --> | |
82 </div> | |
83 <!-- sideblock --> | |
84 | |
39 | 85 <!-- related projects --> |
61 | 86 <div class="sideblock" tal:define="projects here/getRelatedProjectList" tal:condition="projects"> |
39 | 87 <h2>Related Projects</h2> |
80 | 88 <div class="project" tal:repeat="project projects"> |
61 | 89 <a tal:attributes="href string:$proBaseUrl/${project/getProjectId}" |
90 tal:content="project/getProjectLabel" /> | |
34 | 91 </div> |
39 | 92 <!-- end item --> |
93 </div> | |
94 <!-- sideblock --> | |
34 | 95 |
39 | 96 <!-- related publications --> |
61 | 97 <tal:block tal:define="publications here/getPublicationList"> |
39 | 98 <div class="sideblock" tal:condition="publications"> |
34 | 99 <h2>Related Publications</h2> |
61 | 100 <tal:block tal:repeat="publication publications"> |
101 <div class="item" tal:define="bookid publication/getBookId" tal:condition="publication/text"> | |
102 <tal:y condition="not:bookid"> | |
103 <tal:x tal:define="img publication/publicationImage1 | nothing" tal:condition="img"> | |
104 <a target="_blank" tal:attributes="href img/absolute_url"> <img width="150" | |
105 tal:attributes="src img/absolute_url" /> | |
106 </a> | |
107 <br /> | |
108 </tal:x> | |
109 <a tal:define="link publication/link | nothing;" tal:omit-tag="not:link" tal:content="structure publication/text" | |
110 tal:attributes="href link" /> | |
111 </tal:y> | |
112 <tal:y condition="bookid"> | |
113 <tal:x | |
114 tal:define="book python:here.books[bookid]; bookurl python:book.getUrl(baseUrl=root+'/'+secmap['resources']+'/books')"> | |
115 <a tal:attributes="href bookurl"><img width="150" tal:attributes="src book/getImageUrl" /></a> | |
116 <br /> | |
117 <a tal:attributes="href bookurl" tal:content="structure publication/text" /> | |
118 </tal:x> | |
119 </tal:y> | |
63 | 120 <tal:x tal:condition="python:hasattr(publication, 'description')"> |
61 | 121 <div tal:content="structure publication/description" /> |
34 | 122 </tal:x> |
80 | 123 </div><!-- end item --> |
61 | 124 </tal:block> |
34 | 125 </div> |
126 <!-- sideblock --> | |
127 | |
61 | 128 <div class="sideblock" tal:condition="here/hasAdditionalPublications"> |
129 <h2>Additional Publications</h2> | |
34 | 130 <div class="item"> |
74
e424b68244c8
better template for additional project publications.
casties
parents:
63
diff
changeset
|
131 <a class="internal" tal:attributes="href python:here.getUrl(baseUrl=proBaseUrl)+'/additional_publications_html'"> |
61 | 132 Publications in the context of this project |
133 </a> | |
34 | 134 </div> |
135 </div> | |
136 </tal:block> | |
137 <!-- related publications --> | |
138 | |
139 <!-- projects covered --> | |
140 <div class="sideblock" | |
39 | 141 tal:define="showArchive python:(request.get('showArchive','no')=='yes'); |
142 children here/getSubProjects;" | |
143 tal:condition="children"> | |
34 | 144 <h2> |
43 | 145 Projects |
39 | 146 <span class="proj_state"> |
147 <a href="?" tal:omit-tag="python:not (here.isArchivedProject() or showArchive)">current</a> | |
148 | |
149 <a href="?showArchive=yes" tal:omit-tag="python:here.isArchivedProject() or showArchive">completed</a> | |
34 | 150 </span> |
151 </h2> | |
39 | 152 <tal:y tal:repeat="child children"> |
153 <tal:x tal:condition="python:not (child.isArchivedProject() or showArchive)"> | |
34 | 154 <div class="project"> |
39 | 155 <a tal:content="child/getLabel" |
156 tal:attributes="href python:child.getUrl(baseUrl=proBaseUrl)" /> | |
34 | 157 </div> |
158 </tal:x> | |
39 | 159 <tal:x tal:condition="python:child.isArchivedProject() and (here.isArchivedProject() or showArchive)"> |
160 <div class="project inactive" tal:define="started child/getStartedAt"> | |
161 <a tal:content="child/getLabel" | |
162 tal:attributes="href python:child.getUrl(baseUrl=proBaseUrl)" /> | |
163 (<span tal:condition="started" tal:content="string:$started-"/><tal:x tal:condition="not:started">Completed: </tal:x><span tal:content="child/getCompletedAt"/>) | |
34 | 164 </div> |
165 </tal:x> | |
166 </tal:y> | |
167 </div> | |
168 <!-- projects covered --> | |
169 | |
81 | 170 <!-- custom info blocks --> |
171 <div class="sideblock" tal:repeat="block here/getInfoBlockList"> | |
172 <h2 tal:content="block/getTitle">Info block</h2> | |
173 <div class="item" tal:repeat="item block/getItems"> | |
174 <a class="external" tal:attributes="href item/link" tal:omit-tag="not:item/link" | |
175 tal:content="structure item/text"> | |
176 info item | |
177 </a> | |
178 </div> | |
179 </div> | |
180 | |
39 | 181 <!-- related digital sources --> |
182 <div class="sideblock" tal:define="sources here/getRelatedDigitalSources" tal:condition="sources"> | |
81 | 183 <h2>OLD! Related digital sources</h2> |
39 | 184 <div class="item" tal:content="structure sources"> |
185 digital sources | |
34 | 186 </div> |
187 </div> | |
188 | |
39 | 189 <!-- funding institutions --> |
190 <div class="sideblock" tal:define="funding here/getFundingInstitutions" tal:condition="funding"> | |
34 | 191 <h2>Funding Institutions</h2> |
39 | 192 <div class="item" tal:content="structure funding"> |
193 Funding | |
194 </div> | |
34 | 195 </div> |
196 <!-- sideblock --> | |
197 | |
198 </div> | |
199 <!-- sidebar --> | |
200 | |
201 </body> | |
202 </html> |