Mercurial > hg > MPIWGWeb
view zpt/www/common_template.zpt @ 89:2f52650cb539
small fix.
author | casties |
---|---|
date | Wed, 15 May 2013 15:56:53 +0200 |
parents | ab836d3f96dc |
children | d2f75c879335 |
line wrap: on
line source
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> </head> <body> <!-- common template snippets as METAL macros --> <!-- full-row feature block --> <div class="row teaser" metal:define-macro="feature_teaser" tal:define="features python:here.getFeatures(); feature_num python:int(request.get('ff',len(features))); feature python:features[feature_num-1]; feature_url python:feature.getUrl('%s/%s/features'%(root,secmap['news'])); teaser_path string:here/features/${feature/getTeaserPath};"> <!-- feature image and intro --> <div class="col"> <div class="box teaser_image"> <div class="slider prev" tal:condition="python:feature_num>1"> <a tal:attributes="href python:'?ff=%s'%(feature_num-1)"><img tal:attributes="src string:$root/images/slider_prev.png" alt="previous" /></a> </div> <a tal:attributes="href feature_url"> <img tal:attributes="src feature/getFrontpageImgUrl" width="593" height="351" /> </a> <tal:block tal:condition="exists:python:path(teaser_path+'/macros/caption')"> <tal:block metal:use-macro="python:path(teaser_path+'/macros/caption')" /> </tal:block> </div> </div> <div class="col"> <div class="box teaser_text"> <div class="feature_number" tal:content="feature_num|nothing" /> <div class="date" tal:content="feature/getDateString" /> <h3> <metal:block metal:define-slot="topic_title">Current Research Topic</metal:block> </h3> <tal:block tal:condition="exists:python:path(teaser_path+'/macros/text')"> <tal:block tal:condition="exists:python:path(teaser_path+'/macros/text')" metal:use-macro="python:path(teaser_path+'/macros/text')" /> </tal:block> <p> <a class="internal" tal:attributes="href feature_url"><metal:block metal:define-slot="topic_link">Current Research Topic</metal:block></a> </p> <p> <a class="internal" tal:attributes="href string:$root/${secmap/news}/featurearchive.html"><metal:block metal:define-slot="topic_archive">Research Topic Archive</metal:block></a> </p> <div class="slider next" tal:condition="python:feature_num<len(features)-1"> <a tal:attributes="href python:'?ff=%s'%(feature_num+1)"><img tal:attributes="src string:$root/images/slider_next.png" alt="next" /></a> </div> </div> </div> </div> <!-- feature --> <!-- short person entry --> <tr class="line" metal:define-macro="staff_member_row"> <td> <a tal:attributes="href python:member.getUrl(baseUrl=memBaseUrl)"> <span tal:replace="member/content/first_name" /> <b><span tal:replace="member/content/last_name" /></b> </a> <tal:block metal:define-slot="name_more"/> </td> <td><span tal:replace="python:here.replaceNotEmpty('%s ',member.content.titles_new)" /> (<span tal:replace="python:here.replaceNotEmpty('%s, ',member.content.status)" /> <span tal:replace="python:here.replaceNotEmpty('%s',member.content.date_stay_at_mpiwg)" /><span tal:replace="python:here.replaceNotEmpty(', funded by the %s',member.content.funded_by)" />)<tal:x condition="python:member.content.current_work_p=='yes'"><i tal:content="python:here.replaceNotEmpty(': %s',member.content.current_work)" /> </tal:x> <tal:block tal:condition="python:member.content.e_mail_p=='yes'"> <br /> <a class="email" tal:attributes="href python:'mailto:'+member.content.e_mail" tal:content="member/content/e_mail">[FMP-field: e_mail]</a> </tal:block></td> </tr> <!-- /short person entry --> </body> </html>