Mercurial > hg > MPIWGWeb
view zpt/www/common_template.zpt @ 177:a7be6992777e
change wording
author | casties |
---|---|
date | Tue, 11 Jun 2013 14:46:52 +0200 |
parents | ed1366e3c533 |
children | a743e22a155a |
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 --> <!-- sort projects tool box --> <div class="tool box" metal:define-macro="tool_box_projects"> <form class="autosubmit" tal:attributes="action string:$root/${secmap/research}/redirectSortBy"> <input type="hidden" name="dep" tal:condition="activeDep|nothing" tal:attributes="value activeDep" /> <h3 metal:define-slot="title">Sort Projects by</h3> <div class="options"> <ul tal:attributes="class listClass | nothing"> <li><input class="radio autosubmit" type="radio" name="sortby" value="unit" tal:attributes="checked python:sortby=='unit'" /> <tal:block metal:define-slot="text_unit">Research Unit</tal:block> </li> <li><input class="radio autosubmit" type="radio" name="sortby" value="name" tal:attributes="checked python:sortby=='name'" /> <tal:block metal:define-slot="text_name">Project Title</tal:block> </li> <li><input class="radio autosubmit" type="radio" name="sortby" value="scholar" tal:attributes="checked python:sortby=='scholar'" /> <tal:block metal:define-slot="text_scholar">Involved Scholar</tal:block> </li> <li><input class="radio autosubmit" type="radio" name="sortby" value="structure" tal:attributes="checked python:sortby=='structure'" /> <tal:block metal:define-slot="text_structure">Structure</tal:block> </li> <li><input class="radio autosubmit" type="radio" name="sortby" value="thesaurus" tal:attributes="checked python:sortby=='thesaurus'" /> <tal:block metal:define-slot="text_thesaurus">Keyword</tal:block> </li> </ul> </div> <div class="options"> <input class="radio autosubmit" type="radio" name="archived" value="1" tal:attributes="checked python:archived==1" /> <tal:block metal:define-slot="text_current">Show Current Projects</tal:block> <input class="radio autosubmit" type="radio" name="archived" value="2" tal:attributes="checked python:archived==2" /> <tal:block metal:define-slot="text_completed">Show Completed Projects</tal:block> <input class="autosubmit" type="submit" value="Change" /> </div> <div class="atoz" tal:condition="python:sortby in ['name','scholar']"> <ul class="inline"> <li tal:repeat="letter python:modules['string'].uppercase"> <a tal:attributes="href string:#$letter" tal:content="letter"/><tal:block tal:condition="not:repeat/letter/end"> |</tal:block> </li> </ul> </div> </form> </div> <!-- 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 --> <!-- radiobutton for yes/no form. @param name: parameter name @param value: parameter value --> <span metal:define-macro="yesno_input_radio"> <input type="radio" tal:attributes="name name; checked python:value=='yes'" value="yes"/> yes <input type="radio" tal:attributes="name name; checked python:value!='yes'" value="no"/> no </span> <!-- /yesno_input_radio --> </body> </html>