diff zpt/project/project_template.zpt @ 35:38cbbeaf266b

more work on projects. responsibleScientistsList has new format.
author casties
date Thu, 25 Apr 2013 21:39:57 +0200
parents b8ced08ebea9
children bbad6a092861
line wrap: on
line diff
--- a/zpt/project/project_template.zpt	Thu Apr 25 12:07:56 2013 +0200
+++ b/zpt/project/project_template.zpt	Thu Apr 25 21:39:57 2013 +0200
@@ -25,17 +25,12 @@
       </p>
     </tal:x>
 
-    <h1 tal:content="structure python:here.getContent('WEB_title')">History of Scientific Objectivity, 18th-19th Cs</h1>
+    <h1 tal:content="here/getProjectTitle">History of Scientific Objectivity, 18th-19th Cs</h1>
     <p class="maintext_authors">
-      <tal:block tal:repeat="person python:here.getNamesOrdered(here.responsibleScientistsList)">
-        <tal:block tal:define="name python:person[0]; url python:here.getMemberIdFromKey(person[1])">
-          <a tal:condition="python:(url!='') and here.isActiveMember(person[1])"
-            tal:attributes="href string:$root/${secmap/staff}/members/$url" tal:content="python:here.decode(name)"> Name of
-            responsible person </a>
-          <span tal:condition="not:python:(url!='') and here.isActiveMember(person[1])" tal:content="python:here.decode(name)">
-            Name of responsible person </span>
-        </tal:block>
-        <tal:block tal:condition="not:repeat/person/end">,</tal:block>
+      <tal:block tal:repeat="person here/getResponsibleScientistsList">
+          <a tal:omit-tag="python:not (person['username'] and here.isActiveMember(person['key']))"
+            tal:attributes="href string:$root/${secmap/staff}/members/${person/username}" tal:content="person/name"> Name of
+            responsible person</a><tal:block tal:condition="not:repeat/person/end">, </tal:block>
       </tal:block>
     </p>