Mercurial > hg > MPIWGWeb
annotate zpt/project/project_index_html.zpt @ 201:81a8177ca354
shows where a entry comes from in editing mode
author | dwinter |
---|---|
date | Wed, 26 Jun 2013 16:49:31 +0200 |
parents | a28e67fbdd31 |
children | 2b27332c9545 |
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"> |
100 | 36 <a class="mpiwg-author" tal:define="username person/username|nothing; key person/key|nothing;" |
37 tal:omit-tag="python:not username or not here.getStaffFolder().isActiveMember(key=key)" | |
38 tal:attributes="href string:$root/${secmap/staff}/members/$username" tal:content="person/name"> Name of responsible | |
101 | 39 person </a><tal:block tal:condition="not:repeat/person/end">, </tal:block> |
34 | 40 </tal:block> |
80 | 41 </h3> |
34 | 42 |
80 | 43 <h3 class="authors" tal:define="others here/getInvolvedScholars" tal:condition="others"> |
44 Other involved scholars: <span tal:content="structure others">Scholars </span> | |
45 </h3> | |
46 <h3 class="authors" tal:define="partners here/getCooperationPartners" tal:condition="partners"> | |
47 Cooperation Partners: <span tal:content="structure partners">Partners</span> | |
48 </h3> | |
49 | |
50 <div class="description"> | |
51 <!-- inline image --> | |
98
d29425348cbd
show image without caption in project description if its the first one.
casties
parents:
97
diff
changeset
|
52 <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
|
53 <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
|
54 <div class="image"> |
d29425348cbd
show image without caption in project description if its the first one.
casties
parents:
97
diff
changeset
|
55 <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
|
56 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
|
57 </div> |
d29425348cbd
show image without caption in project description if its the first one.
casties
parents:
97
diff
changeset
|
58 <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
|
59 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
|
60 </div> |
34 | 61 </div> |
98
d29425348cbd
show image without caption in project description if its the first one.
casties
parents:
97
diff
changeset
|
62 </tal:block> |
97 | 63 <!-- project description --> |
80 | 64 <div tal:content="structure python:here.getDescription(filter=True)">Project description</div> |
34 | 65 </div> |
66 | |
98
d29425348cbd
show image without caption in project description if its the first one.
casties
parents:
97
diff
changeset
|
67 </div><!-- /center --> |
34 | 68 |
69 <!-- right column --> | |
70 <div class="sidebar" metal:fill-slot="sidebar"> | |
71 | |
39 | 72 <!-- this project is part of --> |
34 | 73 <div class="sideblock" |
39 | 74 tal:define="parents here/getSuperProjects;" tal:condition="parents"> |
34 | 75 <div class="project parent"> |
76 Part of: | |
40 | 77 <a tal:define="parent python:parents[-1]" tal:content="parent/getLabel" |
39 | 78 tal:attributes="href python:parent.getUrl(baseUrl=proBaseUrl)+test(here.isArchivedProject(),'?showArchive=yes','')" /> |
34 | 79 </div> |
80 <!-- end parent --> | |
81 </div> | |
82 <!-- sideblock --> | |
83 | |
39 | 84 <!-- related projects --> |
61 | 85 <div class="sideblock" tal:define="projects here/getRelatedProjectList" tal:condition="projects"> |
39 | 86 <h2>Related Projects</h2> |
80 | 87 <div class="project" tal:repeat="project projects"> |
61 | 88 <a tal:attributes="href string:$proBaseUrl/${project/getProjectId}" |
89 tal:content="project/getProjectLabel" /> | |
34 | 90 </div> |
39 | 91 <!-- end item --> |
92 </div> | |
93 <!-- sideblock --> | |
34 | 94 |
39 | 95 <!-- related publications --> |
61 | 96 <tal:block tal:define="publications here/getPublicationList"> |
39 | 97 <div class="sideblock" tal:condition="publications"> |
34 | 98 <h2>Related Publications</h2> |
61 | 99 <tal:block tal:repeat="publication publications"> |
100 <div class="item" tal:define="bookid publication/getBookId" tal:condition="publication/text"> | |
101 <tal:y condition="not:bookid"> | |
102 <tal:x tal:define="img publication/publicationImage1 | nothing" tal:condition="img"> | |
103 <a target="_blank" tal:attributes="href img/absolute_url"> <img width="150" | |
104 tal:attributes="src img/absolute_url" /> | |
105 </a> | |
106 <br /> | |
107 </tal:x> | |
108 <a tal:define="link publication/link | nothing;" tal:omit-tag="not:link" tal:content="structure publication/text" | |
109 tal:attributes="href link" /> | |
110 </tal:y> | |
111 <tal:y condition="bookid"> | |
112 <tal:x | |
113 tal:define="book python:here.books[bookid]; bookurl python:book.getUrl(baseUrl=root+'/'+secmap['resources']+'/books')"> | |
114 <a tal:attributes="href bookurl"><img width="150" tal:attributes="src book/getImageUrl" /></a> | |
115 <br /> | |
116 <a tal:attributes="href bookurl" tal:content="structure publication/text" /> | |
117 </tal:x> | |
118 </tal:y> | |
63 | 119 <tal:x tal:condition="python:hasattr(publication, 'description')"> |
61 | 120 <div tal:content="structure publication/description" /> |
34 | 121 </tal:x> |
80 | 122 </div><!-- end item --> |
61 | 123 </tal:block> |
34 | 124 </div> |
125 <!-- sideblock --> | |
126 | |
61 | 127 <div class="sideblock" tal:condition="here/hasAdditionalPublications"> |
128 <h2>Additional Publications</h2> | |
34 | 129 <div class="item"> |
74
e424b68244c8
better template for additional project publications.
casties
parents:
63
diff
changeset
|
130 <a class="internal" tal:attributes="href python:here.getUrl(baseUrl=proBaseUrl)+'/additional_publications_html'"> |
61 | 131 Publications in the context of this project |
132 </a> | |
34 | 133 </div> |
134 </div> | |
135 </tal:block> | |
136 <!-- related publications --> | |
137 | |
138 <!-- projects covered --> | |
139 <div class="sideblock" | |
39 | 140 tal:define="showArchive python:(request.get('showArchive','no')=='yes'); |
141 children here/getSubProjects;" | |
142 tal:condition="children"> | |
34 | 143 <h2> |
43 | 144 Projects |
39 | 145 <span class="proj_state"> |
146 <a href="?" tal:omit-tag="python:not (here.isArchivedProject() or showArchive)">current</a> | |
147 | |
148 <a href="?showArchive=yes" tal:omit-tag="python:here.isArchivedProject() or showArchive">completed</a> | |
34 | 149 </span> |
150 </h2> | |
39 | 151 <tal:y tal:repeat="child children"> |
152 <tal:x tal:condition="python:not (child.isArchivedProject() or showArchive)"> | |
34 | 153 <div class="project"> |
39 | 154 <a tal:content="child/getLabel" |
155 tal:attributes="href python:child.getUrl(baseUrl=proBaseUrl)" /> | |
34 | 156 </div> |
157 </tal:x> | |
39 | 158 <tal:x tal:condition="python:child.isArchivedProject() and (here.isArchivedProject() or showArchive)"> |
159 <div class="project inactive" tal:define="started child/getStartedAt"> | |
160 <a tal:content="child/getLabel" | |
161 tal:attributes="href python:child.getUrl(baseUrl=proBaseUrl)" /> | |
162 (<span tal:condition="started" tal:content="string:$started-"/><tal:x tal:condition="not:started">Completed: </tal:x><span tal:content="child/getCompletedAt"/>) | |
34 | 163 </div> |
164 </tal:x> | |
165 </tal:y> | |
166 </div> | |
167 <!-- projects covered --> | |
168 | |
81 | 169 <!-- custom info blocks --> |
170 <div class="sideblock" tal:repeat="block here/getInfoBlockList"> | |
171 <h2 tal:content="block/getTitle">Info block</h2> | |
172 <div class="item" tal:repeat="item block/getItems"> | |
173 <a class="external" tal:attributes="href item/link" tal:omit-tag="not:item/link" | |
174 tal:content="structure item/text"> | |
175 info item | |
176 </a> | |
177 </div> | |
178 </div> | |
179 | |
39 | 180 <!-- related digital sources --> |
181 <div class="sideblock" tal:define="sources here/getRelatedDigitalSources" tal:condition="sources"> | |
81 | 182 <h2>OLD! Related digital sources</h2> |
39 | 183 <div class="item" tal:content="structure sources"> |
184 digital sources | |
34 | 185 </div> |
186 </div> | |
187 | |
39 | 188 <!-- funding institutions --> |
189 <div class="sideblock" tal:define="funding here/getFundingInstitutions" tal:condition="funding"> | |
34 | 190 <h2>Funding Institutions</h2> |
39 | 191 <div class="item" tal:content="structure funding"> |
192 Funding | |
193 </div> | |
34 | 194 </div> |
195 <!-- sideblock --> | |
196 | |
197 </div> | |
198 <!-- sidebar --> | |
199 | |
200 </body> | |
201 </html> |