diff 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
line wrap: on
line diff
--- a/zpt/staff/member_index_html.zpt	Fri May 31 14:48:28 2013 +0200
+++ b/zpt/staff/member_index_html.zpt	Fri May 31 17:55:58 2013 +0200
@@ -16,9 +16,9 @@
   <div class="center" metal:fill-slot="center">
     <div>
       <!-- image -->
-      <tal:block tal:define="imgUrl member/getPublishedImageUrl" tal:condition="imgUrl">
-        <img tal:attributes="src python:'%s&dw=165'%imgUrl" style="float: left; margin-right: 22px;" />
-      </tal:block>
+      <div class="figure" tal:define="imgUrl member/getPublishedImageUrl" tal:condition="imgUrl">
+        <img tal:attributes="src string:$imgUrl&dw=165"/>
+      </div>
       <!-- name and title -->
       <h1>
         <span class="mpiwg-first_name" tal:content="content/first_name" /> 
@@ -36,43 +36,49 @@
     </div>
     
     <!-- profile -->
-    <div>
+    <div class="clear">
+      <tal:x tal:condition="content/profile">
+
+        <h2 class="line">Profile</h2>
+
+        <div class="profile" tal:content="structure content/profile"> [FMP-Field: CV] </div>
+      </tal:x>
       <tal:x tal:condition="not:content/profile">
         <tal:y tal:replace="structure member/generateProfileForPerson" />
       </tal:x>
-      <tal:x tal:condition="content/profile">
-        <h2>Profile</h2>
-        <div class="profile" tal:content="structure content/profile"> [FMP-Field: CV] </div>
-      </tal:x>
     </div>
     
     <!-- publications -->
+  <!--       tal:define="publications python:here.ZDBInlineSearch(_table='pubmanbiblio',key_main=key,_op_key_main='eq')" -->
     <tal:block
-      tal:define="publications python:here.ZDBInlineSearch(_table='pubmanbiblio',key_main=key,_op_key_main='eq')"
+      tal:define="publications python:member.getPublicationsFromPubman(limit=6)"
       tal:condition="publications">
-      <h2>Selected publications</h2>
-      <div class="reference" tal:repeat="publication python:member.getPublicationsFromPubman(limit=5)">
-        <a tal:attributes="href python:'http://pubman.mpiwg-berlin.mpg.de/pubman/faces/viewItemFullPage.jsp?itemId='+publication[0]"
-          tal:content="structure python:publication[1]" />
-        <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>
-        <div tal:repeat="ident python:publication[3]"><a class="external" tal:attributes="href ident">See also</a></div>
-        <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>
-               
-      </div>
+
+      <h2 class="line">Selected publications</h2>
+
+      <ul class="plain">
+        <li class="reference" tal:repeat="publication publications">
+          <span tal:content="structure python:publication[1]"/>
+          <a class="external" target="_blank" 
+             tal:attributes="href python:'http://pubman.mpiwg-berlin.mpg.de/pubman/faces/viewItemFullPage.jsp?itemId='+publication[0]">More</a>
+          <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>
+          <span tal:repeat="ident python:publication[3]"><a class="external" target="_blank" tal:attributes="href ident">See also</a></span>
+          <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>
+        </li>
+      </ul>
       <p tal:condition="python:len(publications)>5">
-        <a class="internal" tal:attributes="href string:$baseUrl/publications_full_html">More</a>
+        <a class="internal" tal:attributes="href string:$baseUrl/publications_full_html">More publications</a>
       </p>
-      <!-- <p>
-        <a class="external" target="_blank" tal:attributes="href member/getConeId">See all publications (PubMan)</a>
-      </p> -->
     </tal:block>
     
     <!-- Talks -->
     <tal:block tal:define="talks member/getTalks" tal:condition="talks">
-      <h2>Talks and presentations</h2>
+
+      <h2 class="line">Talks and presentations</h2>
+
       <table class="items shorter">
         <tr tal:repeat="talk python:here.ZDBSlice(talks,size=5)">
-          <td>
+          <td width="25%">
             <a tal:omit-tag="not:talk/link" tal:attributes="href talk/link" tal:content="talk/date" />
           </td>
           <td>
@@ -89,10 +95,12 @@
     
     <!-- Teaching activities -->
     <tal:block tal:define="teachings member/getTeaching" tal:condition="teachings">
-      <h2>Teaching activities</h2>
+
+      <h2 class="line">Teaching activities</h2>
+
       <table class="items shorter">
         <tr tal:repeat="teaching python:here.ZDBSlice(teachings, size=5)">
-          <td>
+          <td width="25%">
             <a tal:omit-tag="not:teaching/link" tal:attributes="href teaching/link"> <span tal:replace="teaching/date" />
             </a>
           </td>