Mercurial > hg > MPIWGWeb
comparison zpt/staff/member_index_html.zpt @ 140:f84f492f8e11
CLOSED - # 94: Profilseiten: Layout
https://it-dev.mpiwg-berlin.mpg.de/tracs/webpage/ticket/94
author | casties |
---|---|
date | Fri, 31 May 2013 17:55:58 +0200 |
parents | 9f45ed6ffeab |
children | 90d44df497a6 |
comparison
equal
deleted
inserted
replaced
137:e0b343cee9dd | 140:f84f492f8e11 |
---|---|
14 <body> | 14 <body> |
15 <!-- center text --> | 15 <!-- center text --> |
16 <div class="center" metal:fill-slot="center"> | 16 <div class="center" metal:fill-slot="center"> |
17 <div> | 17 <div> |
18 <!-- image --> | 18 <!-- image --> |
19 <tal:block tal:define="imgUrl member/getPublishedImageUrl" tal:condition="imgUrl"> | 19 <div class="figure" tal:define="imgUrl member/getPublishedImageUrl" tal:condition="imgUrl"> |
20 <img tal:attributes="src python:'%s&dw=165'%imgUrl" style="float: left; margin-right: 22px;" /> | 20 <img tal:attributes="src string:$imgUrl&dw=165"/> |
21 </tal:block> | 21 </div> |
22 <!-- name and title --> | 22 <!-- name and title --> |
23 <h1> | 23 <h1> |
24 <span class="mpiwg-first_name" tal:content="content/first_name" /> | 24 <span class="mpiwg-first_name" tal:content="content/first_name" /> |
25 <span class="mpiwg-last_name" tal:content="content/last_name" /> | 25 <span class="mpiwg-last_name" tal:content="content/last_name" /> |
26 </h1> | 26 </h1> |
34 Residence: <span tal:replace="content/date_stay_at_mpiwg" /> | 34 Residence: <span tal:replace="content/date_stay_at_mpiwg" /> |
35 </p> | 35 </p> |
36 </div> | 36 </div> |
37 | 37 |
38 <!-- profile --> | 38 <!-- profile --> |
39 <div> | 39 <div class="clear"> |
40 <tal:x tal:condition="content/profile"> | |
41 | |
42 <h2 class="line">Profile</h2> | |
43 | |
44 <div class="profile" tal:content="structure content/profile"> [FMP-Field: CV] </div> | |
45 </tal:x> | |
40 <tal:x tal:condition="not:content/profile"> | 46 <tal:x tal:condition="not:content/profile"> |
41 <tal:y tal:replace="structure member/generateProfileForPerson" /> | 47 <tal:y tal:replace="structure member/generateProfileForPerson" /> |
42 </tal:x> | |
43 <tal:x tal:condition="content/profile"> | |
44 <h2>Profile</h2> | |
45 <div class="profile" tal:content="structure content/profile"> [FMP-Field: CV] </div> | |
46 </tal:x> | 48 </tal:x> |
47 </div> | 49 </div> |
48 | 50 |
49 <!-- publications --> | 51 <!-- publications --> |
52 <!-- tal:define="publications python:here.ZDBInlineSearch(_table='pubmanbiblio',key_main=key,_op_key_main='eq')" --> | |
50 <tal:block | 53 <tal:block |
51 tal:define="publications python:here.ZDBInlineSearch(_table='pubmanbiblio',key_main=key,_op_key_main='eq')" | 54 tal:define="publications python:member.getPublicationsFromPubman(limit=6)" |
52 tal:condition="publications"> | 55 tal:condition="publications"> |
53 <h2>Selected publications</h2> | 56 |
54 <div class="reference" tal:repeat="publication python:member.getPublicationsFromPubman(limit=5)"> | 57 <h2 class="line">Selected publications</h2> |
55 <a tal:attributes="href python:'http://pubman.mpiwg-berlin.mpg.de/pubman/faces/viewItemFullPage.jsp?itemId='+publication[0]" | 58 |
56 tal:content="structure python:publication[1]" /> | 59 <ul class="plain"> |
57 <div 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></div> | 60 <li class="reference" tal:repeat="publication publications"> |
58 <div tal:repeat="ident python:publication[3]"><a class="external" tal:attributes="href ident">See also</a></div> | 61 <span tal:content="structure python:publication[1]"/> |
59 <div tal:repeat="ident python:publication[4]"><a class="external" tal:attributes="href python:ident[1]" tal:content="python:ident[0]">See also:</a></div> | 62 <a class="external" target="_blank" |
60 | 63 tal:attributes="href python:'http://pubman.mpiwg-berlin.mpg.de/pubman/faces/viewItemFullPage.jsp?itemId='+publication[0]">More</a> |
61 </div> | 64 <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> |
65 <span tal:repeat="ident python:publication[3]"><a class="external" target="_blank" tal:attributes="href ident">See also</a></span> | |
66 <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> | |
67 </li> | |
68 </ul> | |
62 <p tal:condition="python:len(publications)>5"> | 69 <p tal:condition="python:len(publications)>5"> |
63 <a class="internal" tal:attributes="href string:$baseUrl/publications_full_html">More</a> | 70 <a class="internal" tal:attributes="href string:$baseUrl/publications_full_html">More publications</a> |
64 </p> | 71 </p> |
65 <!-- <p> | |
66 <a class="external" target="_blank" tal:attributes="href member/getConeId">See all publications (PubMan)</a> | |
67 </p> --> | |
68 </tal:block> | 72 </tal:block> |
69 | 73 |
70 <!-- Talks --> | 74 <!-- Talks --> |
71 <tal:block tal:define="talks member/getTalks" tal:condition="talks"> | 75 <tal:block tal:define="talks member/getTalks" tal:condition="talks"> |
72 <h2>Talks and presentations</h2> | 76 |
77 <h2 class="line">Talks and presentations</h2> | |
78 | |
73 <table class="items shorter"> | 79 <table class="items shorter"> |
74 <tr tal:repeat="talk python:here.ZDBSlice(talks,size=5)"> | 80 <tr tal:repeat="talk python:here.ZDBSlice(talks,size=5)"> |
75 <td> | 81 <td width="25%"> |
76 <a tal:omit-tag="not:talk/link" tal:attributes="href talk/link" tal:content="talk/date" /> | 82 <a tal:omit-tag="not:talk/link" tal:attributes="href talk/link" tal:content="talk/date" /> |
77 </td> | 83 </td> |
78 <td> | 84 <td> |
79 <a tal:omit-tag="not:talk/link" tal:attributes="href talk/link"> <span tal:replace="talk/place" /> – <i><span | 85 <a tal:omit-tag="not:talk/link" tal:attributes="href talk/link"> <span tal:replace="talk/place" /> – <i><span |
80 tal:replace="talk/title" /></i> | 86 tal:replace="talk/title" /></i> |
87 </p> | 93 </p> |
88 </tal:block> | 94 </tal:block> |
89 | 95 |
90 <!-- Teaching activities --> | 96 <!-- Teaching activities --> |
91 <tal:block tal:define="teachings member/getTeaching" tal:condition="teachings"> | 97 <tal:block tal:define="teachings member/getTeaching" tal:condition="teachings"> |
92 <h2>Teaching activities</h2> | 98 |
99 <h2 class="line">Teaching activities</h2> | |
100 | |
93 <table class="items shorter"> | 101 <table class="items shorter"> |
94 <tr tal:repeat="teaching python:here.ZDBSlice(teachings, size=5)"> | 102 <tr tal:repeat="teaching python:here.ZDBSlice(teachings, size=5)"> |
95 <td> | 103 <td width="25%"> |
96 <a tal:omit-tag="not:teaching/link" tal:attributes="href teaching/link"> <span tal:replace="teaching/date" /> | 104 <a tal:omit-tag="not:teaching/link" tal:attributes="href teaching/link"> <span tal:replace="teaching/date" /> |
97 </a> | 105 </a> |
98 </td> | 106 </td> |
99 <td> | 107 <td> |
100 <a tal:omit-tag="not:teaching/link" tal:attributes="href teaching/link"> <span tal:replace="teaching/place" /> | 108 <a tal:omit-tag="not:teaching/link" tal:attributes="href teaching/link"> <span tal:replace="teaching/place" /> |