Mercurial > hg > MPIWGWeb
view zpt/www/common_template.zpt @ 143:636fc61e64e7
more style
author | casties |
---|---|
date | Fri, 31 May 2013 20:16:44 +0200 |
parents | 782477730916 |
children | ee79f6ba8d01 |
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="slidebutton 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="slidebutton next" tal:condition="python:feature_num<len(features)"> <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 width="25%"> <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 --> <!-- two-column book entry --> <div class="mini book" metal:define-macro="book_col" tal:define="bookurl python:book.getUrl(baseUrl=bookroot); imageurl book/getImageUrl;"> <div class="type" tal:content="python:book.getInfo('pubtype')">Book</div> <div class="thumb" tal:condition="imageurl"> <a tal:attributes="href bookurl"><img tal:condition="imageurl" tal:attributes="src imageurl" alt=""/></a> </div> <h2 tal:content="python:book.getInfo('title')">On historicizing epistemology : an essay</h2> <div class="author"> <span tal:repeat="author python:book.getByPrefix('author_')"> <tal:block tal:define="url python:author[0]; name python:author[2];"> <a tal:attributes="href url" tal:omit-tag="not:url" tal:content="name" /><tal:block tal:condition="not:repeat/author/end">;</tal:block> </tal:block> </span> </div> <p> <span tal:replace="structure python:book.getInfo('short_summary').replace('\n','<br/>\n')">Epistemology, as generally understood by philosophers of science, is rather remote from the history of science and from historical concerns in general.</span> <a tal:attributes="href bookurl" class="internal">More</a> </p> </div> <!-- /two-column book entry --> </body> </html>