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