Mercurial > hg > MPIWGWeb
annotate zpt/staff/member_index_html.zpt @ 218:0babf6e0a454
omit talks section if calendar is empty.
author | casties |
---|---|
date | Wed, 16 Oct 2013 15:44:16 +0200 |
parents | 2598210ada7a |
children | 5d17c46ebffa |
rev | line source |
---|---|
3 | 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/main_template/macros/page"> | |
4 <head> | |
5 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
6 <metal:block metal:fill-slot="head"> | |
90 | 7 <meta name="description" content="member"/> |
8 <tal:block | |
3 | 9 tal:define="global member options/member; global key member/getKey; |
10 global username member/getUsername; global content member/getContent; | |
191
90d44df497a6
updated breadcrumb handling, works for members now.
casties
parents:
140
diff
changeset
|
11 global baseUrl string:$root/${secmap/staff}/members/$username; |
90d44df497a6
updated breadcrumb handling, works for members now.
casties
parents:
140
diff
changeset
|
12 global crumbs member/getBreadcrumbs;" /> |
3 | 13 </metal:block> |
14 </head> | |
15 <body> | |
16 <!-- center text --> | |
17 <div class="center" metal:fill-slot="center"> | |
18 <div> | |
19 <!-- image --> | |
140 | 20 <div class="figure" tal:define="imgUrl member/getPublishedImageUrl" tal:condition="imgUrl"> |
21 <img tal:attributes="src string:$imgUrl&dw=165"/> | |
22 </div> | |
3 | 23 <!-- name and title --> |
24 <h1> | |
90 | 25 <span class="mpiwg-first_name" tal:content="content/first_name" /> |
26 <span class="mpiwg-last_name" tal:content="content/last_name" /> | |
3 | 27 </h1> |
28 <!-- status --> | |
29 <h3 tal:content="content/status" /> | |
30 <h3 tal:content="content/titles_new" /> | |
31 <h3 tal:condition="content/funded_by"> | |
32 Funded by the <span tal:replace="content/funded_by" /> | |
33 </h3> | |
34 <p> | |
35 Residence: <span tal:replace="content/date_stay_at_mpiwg" /> | |
36 </p> | |
37 </div> | |
100 | 38 |
3 | 39 <!-- profile --> |
140 | 40 <div class="clear"> |
41 <tal:x tal:condition="content/profile"> | |
42 | |
43 <h2 class="line">Profile</h2> | |
44 | |
45 <div class="profile" tal:content="structure content/profile"> [FMP-Field: CV] </div> | |
46 </tal:x> | |
86 | 47 <tal:x tal:condition="not:content/profile"> |
48 <tal:y tal:replace="structure member/generateProfileForPerson" /> | |
3 | 49 </tal:x> |
50 </div> | |
100 | 51 |
3 | 52 <!-- publications --> |
140 | 53 <!-- tal:define="publications python:here.ZDBInlineSearch(_table='pubmanbiblio',key_main=key,_op_key_main='eq')" --> |
86 | 54 <tal:block |
140 | 55 tal:define="publications python:member.getPublicationsFromPubman(limit=6)" |
3 | 56 tal:condition="publications"> |
140 | 57 |
58 <h2 class="line">Selected publications</h2> | |
59 | |
60 <ul class="plain"> | |
61 <li class="reference" tal:repeat="publication publications"> | |
62 <span tal:content="structure python:publication[1]"/> | |
63 <a class="external" target="_blank" | |
64 tal:attributes="href python:'http://pubman.mpiwg-berlin.mpg.de/pubman/faces/viewItemFullPage.jsp?itemId='+publication[0]">More</a> | |
65 <span tal:condition="python:publication[2] is not None"><a class="internal" tal:attributes="href python:'/en/resources/publications/'+here.getBookLinkFromID(publication[2])">Book page</a></span> | |
66 <span tal:repeat="ident python:publication[3]"><a class="external" target="_blank" tal:attributes="href ident">See also</a></span> | |
67 <span tal:repeat="ident python:publication[4]"><a class="external" target="_blank" tal:attributes="href python:ident[1]" tal:content="python:ident[0]">See also</a></span> | |
68 </li> | |
69 </ul> | |
38 | 70 <p tal:condition="python:len(publications)>5"> |
140 | 71 <a class="internal" tal:attributes="href string:$baseUrl/publications_full_html">More publications</a> |
3 | 72 </p> |
73 </tal:block> | |
217 | 74 |
3 | 75 <!-- Talks --> |
217 | 76 <tal:block tal:define="calendar member/getTalksCal"> |
77 <tal:block tal:condition="calendar"> | |
218 | 78 <tal:block tal:define="talks python:calendar.getNext(6)" tal:condition="talks"> |
217 | 79 |
80 <h2 class="line">Talks and presentations</h2> | |
140 | 81 |
217 | 82 <table class="items shorter"> |
83 <tr tal:repeat="talk talks"> | |
84 <tal:block tal:define="url python:talk.getValue('url')"> | |
85 <td width="25%" tal:content="python:talk.getDate()" /> | |
86 <td><a tal:omit-tag="not:url" tal:attributes="href url"> <span tal:replace="python:talk.getValue('location')" /> | |
87 – <i><span tal:replace="python:talk.getValue('title')" /></i> | |
88 </a></td> | |
89 </tal:block> | |
90 </tr> | |
91 </table> | |
92 <p tal:condition="python:len(talks)>5"> | |
93 <a class="internal" tal:attributes="href string:$baseUrl/talks_full_html">More</a> | |
94 </p> | |
95 </tal:block> | |
96 </tal:block> | |
97 <tal:block tal:condition="not:calendar"> | |
98 <tal:block tal:define="talks member/getTalks" tal:condition="talks"> | |
99 | |
100 <h2 class="line">Talks and presentations</h2> | |
101 | |
102 <table class="items shorter"> | |
103 <tr tal:repeat="talk python:here.ZDBSlice(talks,size=5)"> | |
104 <td width="25%" tal:content="talk/date" /> | |
105 <td><a tal:omit-tag="not:talk/link" tal:attributes="href talk/link"> <span tal:replace="talk/place" /> – <i><span | |
106 tal:replace="talk/title" /></i> | |
107 </a></td> | |
108 </tr> | |
109 </table> | |
110 <p tal:condition="python:len(talks)>5"> | |
111 <a class="internal" tal:attributes="href string:$baseUrl/talks_full_html">More</a> | |
112 </p> | |
113 </tal:block> | |
114 </tal:block> | |
3 | 115 </tal:block> |
217 | 116 |
3 | 117 <!-- Teaching activities --> |
100 | 118 <tal:block tal:define="teachings member/getTeaching" tal:condition="teachings"> |
140 | 119 |
120 <h2 class="line">Teaching activities</h2> | |
121 | |
100 | 122 <table class="items shorter"> |
123 <tr tal:repeat="teaching python:here.ZDBSlice(teachings, size=5)"> | |
140 | 124 <td width="25%"> |
3 | 125 <a tal:omit-tag="not:teaching/link" tal:attributes="href teaching/link"> <span tal:replace="teaching/date" /> |
126 </a> | |
100 | 127 </td> |
128 <td> | |
3 | 129 <a tal:omit-tag="not:teaching/link" tal:attributes="href teaching/link"> <span tal:replace="teaching/place" /> |
130 – <i><span tal:replace="teaching/title" /></i> | |
131 </a> | |
100 | 132 </td> |
133 </tr> | |
134 </table> | |
135 <p tal:condition="python:len(teachings)>5"> | |
136 <a class="internal" tal:attributes="href string:$baseUrl/teaching_full_html">More</a> | |
137 </p> | |
3 | 138 </tal:block> |
100 | 139 |
140 </div><!-- /center --> | |
3 | 141 |
142 | |
143 <!--sidebar content --> | |
144 <div class="sidebar" metal:fill-slot="sidebar"> | |
145 <div class="sideblock"> | |
146 <h2>Contact</h2> | |
147 <div class="item noline"> | |
86 | 148 Max Planck Institute for the History of Science <br /> Boltzmannstraße 22 <br /> 14195 Berlin <br /> Germany |
3 | 149 </div> |
150 <div class="item" tal:condition="python:content.telefon_p=='yes'"> | |
86 | 151 tel.: <span tal:content="content/telefon">[FMP-Field: telefon]</span> <br /> |
3 | 152 </div> |
153 <div class="item" tal:condition="python:content.fax_p=='yes'"> | |
86 | 154 fax: <span tal:content="content/fax">[FMP-Field: fax]</span> <br /> |
3 | 155 </div> |
86 | 156 <div class="item" tal:condition="python:content.e_mail_p=='yes'"> |
157 <a class="email" tal:attributes="href string:mailto:${content/e_mail}" tal:content="content/e_mail">[FMP-Field: | |
3 | 158 e_mail]</a> |
159 </div> | |
86 | 160 <div class="item" tal:condition="python:content.e_mail2_p=='yes'"> |
161 <a class="email" tal:attributes="href string:mailto:${content/e_mail2}" tal:content="content/e_mail2">[FMP-Field: | |
3 | 162 e_mail2]</a> (external) |
163 </div> | |
164 </div> | |
165 | |
86 | 166 <div class="sideblock" tal:define="projects python:here.getProjectFolder().getProjectsOfMember(key=key)" |
167 tal:condition="projects"> | |
3 | 168 <h2>Projects</h2> |
40 | 169 <div class="project" tal:repeat="project projects"> |
170 <a tal:attributes="href python:project.getUrl(baseUrl=root+'/'+secmap['research']+'/projects/')" | |
86 | 171 tal:content="project/getLabel" /> |
3 | 172 </div> |
173 </div> | |
174 | |
175 <div class="sideblock"> | |
176 <h2>Related Material</h2> | |
195 | 177 <div class="item download" tal:condition="python:here.content.cv_p=='yes'"> |
3 | 178 <a target="_blank" href="downloadCV">Download Curriculum Vitae</a> |
179 </div> | |
195 | 180 <div class="item download" tal:condition="python:here.content.publications_p=='yes'"> |
86 | 181 <a target="_blank" href="downloadPublications">Download Publication List</a> <br /> |
3 | 182 </div> |
86 | 183 <div class="item external"> |
184 <a target="_blank" tal:attributes="href python:member.getConeId()"> See publications on PubMan</a> | |
3 | 185 </div> |
86 | 186 <div class="item external" |
3 | 187 tal:repeat="addLink python:here.ZDBInlineSearch(_table='additionallink',key_main=key,_op_key_main='eq',_sort='priority',published='yes')"> |
188 <a target="_blank" tal:content="addLink/title" tal:attributes="href addLink/link"> Daston on the History of Science | |
189 (listen to CBC-Interview, Fall 2007)</a> | |
190 </div> | |
191 </div> | |
192 </div> | |
193 <!-- sidebar --> | |
194 </body> | |
195 </html> |