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