Mercurial > hg > MPIWGWeb
annotate zpt/www/common_template.zpt @ 177:a7be6992777e
change wording
author | casties |
---|---|
date | Tue, 11 Jun 2013 14:46:52 +0200 |
parents | ed1366e3c533 |
children | a743e22a155a |
rev | line source |
---|---|
26
8a99ad8713d6
new common template for fragments. new styles for servicebox.
casties
parents:
diff
changeset
|
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" |
8a99ad8713d6
new common template for fragments. new styles for servicebox.
casties
parents:
diff
changeset
|
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
8a99ad8713d6
new common template for fragments. new styles for servicebox.
casties
parents:
diff
changeset
|
3 <html xmlns="http://www.w3.org/1999/xhtml"> |
8a99ad8713d6
new common template for fragments. new styles for servicebox.
casties
parents:
diff
changeset
|
4 <head> |
8a99ad8713d6
new common template for fragments. new styles for servicebox.
casties
parents:
diff
changeset
|
5 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
8a99ad8713d6
new common template for fragments. new styles for servicebox.
casties
parents:
diff
changeset
|
6 </head> |
8a99ad8713d6
new common template for fragments. new styles for servicebox.
casties
parents:
diff
changeset
|
7 <body> |
8a99ad8713d6
new common template for fragments. new styles for servicebox.
casties
parents:
diff
changeset
|
8 <!-- common template snippets as METAL macros --> |
8a99ad8713d6
new common template for fragments. new styles for servicebox.
casties
parents:
diff
changeset
|
9 |
8a99ad8713d6
new common template for fragments. new styles for servicebox.
casties
parents:
diff
changeset
|
10 <!-- full-row feature block --> |
8a99ad8713d6
new common template for fragments. new styles for servicebox.
casties
parents:
diff
changeset
|
11 <div class="row teaser" metal:define-macro="feature_teaser" |
8a99ad8713d6
new common template for fragments. new styles for servicebox.
casties
parents:
diff
changeset
|
12 tal:define="features python:here.getFeatures(); |
31 | 13 feature_num python:int(request.get('ff',len(features))); |
14 feature python:features[feature_num-1]; | |
26
8a99ad8713d6
new common template for fragments. new styles for servicebox.
casties
parents:
diff
changeset
|
15 feature_url python:feature.getUrl('%s/%s/features'%(root,secmap['news'])); |
8a99ad8713d6
new common template for fragments. new styles for servicebox.
casties
parents:
diff
changeset
|
16 teaser_path string:here/features/${feature/getTeaserPath};"> |
8a99ad8713d6
new common template for fragments. new styles for servicebox.
casties
parents:
diff
changeset
|
17 <!-- feature image and intro --> |
8a99ad8713d6
new common template for fragments. new styles for servicebox.
casties
parents:
diff
changeset
|
18 <div class="col"> |
8a99ad8713d6
new common template for fragments. new styles for servicebox.
casties
parents:
diff
changeset
|
19 <div class="box teaser_image"> |
108
782477730916
CLOSED - # 57: Research/ Research Units: Karussell f?r die Projekte in einem Department
casties
parents:
92
diff
changeset
|
20 <div class="slidebutton prev" tal:condition="python:feature_num>1"> |
26
8a99ad8713d6
new common template for fragments. new styles for servicebox.
casties
parents:
diff
changeset
|
21 <a tal:attributes="href python:'?ff=%s'%(feature_num-1)"><img tal:attributes="src string:$root/images/slider_prev.png" |
8a99ad8713d6
new common template for fragments. new styles for servicebox.
casties
parents:
diff
changeset
|
22 alt="previous" /></a> |
8a99ad8713d6
new common template for fragments. new styles for servicebox.
casties
parents:
diff
changeset
|
23 </div> |
8a99ad8713d6
new common template for fragments. new styles for servicebox.
casties
parents:
diff
changeset
|
24 <a tal:attributes="href feature_url"> <img tal:attributes="src feature/getFrontpageImgUrl" width="593" height="351" /> |
8a99ad8713d6
new common template for fragments. new styles for servicebox.
casties
parents:
diff
changeset
|
25 </a> |
8a99ad8713d6
new common template for fragments. new styles for servicebox.
casties
parents:
diff
changeset
|
26 <tal:block tal:condition="exists:python:path(teaser_path+'/macros/caption')"> |
8a99ad8713d6
new common template for fragments. new styles for servicebox.
casties
parents:
diff
changeset
|
27 <tal:block metal:use-macro="python:path(teaser_path+'/macros/caption')" /> |
8a99ad8713d6
new common template for fragments. new styles for servicebox.
casties
parents:
diff
changeset
|
28 </tal:block> |
8a99ad8713d6
new common template for fragments. new styles for servicebox.
casties
parents:
diff
changeset
|
29 </div> |
8a99ad8713d6
new common template for fragments. new styles for servicebox.
casties
parents:
diff
changeset
|
30 </div> |
8a99ad8713d6
new common template for fragments. new styles for servicebox.
casties
parents:
diff
changeset
|
31 <div class="col"> |
8a99ad8713d6
new common template for fragments. new styles for servicebox.
casties
parents:
diff
changeset
|
32 <div class="box teaser_text"> |
8a99ad8713d6
new common template for fragments. new styles for servicebox.
casties
parents:
diff
changeset
|
33 <div class="feature_number" tal:content="feature_num|nothing" /> |
8a99ad8713d6
new common template for fragments. new styles for servicebox.
casties
parents:
diff
changeset
|
34 <div class="date" tal:content="feature/getDateString" /> |
8a99ad8713d6
new common template for fragments. new styles for servicebox.
casties
parents:
diff
changeset
|
35 <h3> |
8a99ad8713d6
new common template for fragments. new styles for servicebox.
casties
parents:
diff
changeset
|
36 <metal:block metal:define-slot="topic_title">Current Research Topic</metal:block> |
8a99ad8713d6
new common template for fragments. new styles for servicebox.
casties
parents:
diff
changeset
|
37 </h3> |
8a99ad8713d6
new common template for fragments. new styles for servicebox.
casties
parents:
diff
changeset
|
38 <tal:block tal:condition="exists:python:path(teaser_path+'/macros/text')"> |
8a99ad8713d6
new common template for fragments. new styles for servicebox.
casties
parents:
diff
changeset
|
39 <tal:block tal:condition="exists:python:path(teaser_path+'/macros/text')" |
8a99ad8713d6
new common template for fragments. new styles for servicebox.
casties
parents:
diff
changeset
|
40 metal:use-macro="python:path(teaser_path+'/macros/text')" /> |
8a99ad8713d6
new common template for fragments. new styles for servicebox.
casties
parents:
diff
changeset
|
41 </tal:block> |
8a99ad8713d6
new common template for fragments. new styles for servicebox.
casties
parents:
diff
changeset
|
42 <p> |
8a99ad8713d6
new common template for fragments. new styles for servicebox.
casties
parents:
diff
changeset
|
43 <a class="internal" tal:attributes="href feature_url"><metal:block metal:define-slot="topic_link">Current Research Topic</metal:block></a> |
8a99ad8713d6
new common template for fragments. new styles for servicebox.
casties
parents:
diff
changeset
|
44 </p> |
8a99ad8713d6
new common template for fragments. new styles for servicebox.
casties
parents:
diff
changeset
|
45 <p> |
8a99ad8713d6
new common template for fragments. new styles for servicebox.
casties
parents:
diff
changeset
|
46 <a class="internal" tal:attributes="href string:$root/${secmap/news}/featurearchive.html"><metal:block |
8a99ad8713d6
new common template for fragments. new styles for servicebox.
casties
parents:
diff
changeset
|
47 metal:define-slot="topic_archive">Research Topic Archive</metal:block></a> |
8a99ad8713d6
new common template for fragments. new styles for servicebox.
casties
parents:
diff
changeset
|
48 </p> |
108
782477730916
CLOSED - # 57: Research/ Research Units: Karussell f?r die Projekte in einem Department
casties
parents:
92
diff
changeset
|
49 <div class="slidebutton next" tal:condition="python:feature_num<len(features)"> |
26
8a99ad8713d6
new common template for fragments. new styles for servicebox.
casties
parents:
diff
changeset
|
50 <a tal:attributes="href python:'?ff=%s'%(feature_num+1)"><img tal:attributes="src string:$root/images/slider_next.png" |
8a99ad8713d6
new common template for fragments. new styles for servicebox.
casties
parents:
diff
changeset
|
51 alt="next" /></a> |
8a99ad8713d6
new common template for fragments. new styles for servicebox.
casties
parents:
diff
changeset
|
52 </div> |
8a99ad8713d6
new common template for fragments. new styles for servicebox.
casties
parents:
diff
changeset
|
53 </div> |
8a99ad8713d6
new common template for fragments. new styles for servicebox.
casties
parents:
diff
changeset
|
54 </div> |
163 | 55 </div><!-- /feature --> |
56 | |
57 <!-- sort projects tool box --> | |
58 <div class="tool box" metal:define-macro="tool_box_projects"> | |
59 <form class="autosubmit" tal:attributes="action string:$root/${secmap/research}/redirectSortBy"> | |
60 <input type="hidden" name="dep" tal:condition="activeDep|nothing" tal:attributes="value activeDep" /> | |
61 <h3 metal:define-slot="title">Sort Projects by</h3> | |
62 <div class="options"> | |
63 <ul tal:attributes="class listClass | nothing"> | |
64 <li><input class="radio autosubmit" type="radio" name="sortby" value="unit" tal:attributes="checked python:sortby=='unit'" /> | |
65 <tal:block metal:define-slot="text_unit">Research Unit</tal:block> | |
66 </li> | |
67 <li><input class="radio autosubmit" type="radio" name="sortby" value="name" tal:attributes="checked python:sortby=='name'" /> | |
177 | 68 <tal:block metal:define-slot="text_name">Project Title</tal:block> |
163 | 69 </li> |
70 <li><input class="radio autosubmit" type="radio" name="sortby" value="scholar" tal:attributes="checked python:sortby=='scholar'" /> | |
71 <tal:block metal:define-slot="text_scholar">Involved Scholar</tal:block> | |
72 </li> | |
73 <li><input class="radio autosubmit" type="radio" name="sortby" value="structure" tal:attributes="checked python:sortby=='structure'" /> | |
74 <tal:block metal:define-slot="text_structure">Structure</tal:block> | |
75 </li> | |
76 <li><input class="radio autosubmit" type="radio" name="sortby" value="thesaurus" tal:attributes="checked python:sortby=='thesaurus'" /> | |
77 <tal:block metal:define-slot="text_thesaurus">Keyword</tal:block> | |
78 </li> | |
79 </ul> | |
80 </div> | |
81 <div class="options"> | |
82 <input class="radio autosubmit" type="radio" name="archived" value="1" tal:attributes="checked python:archived==1" /> | |
83 <tal:block metal:define-slot="text_current">Show Current Projects</tal:block> | |
84 <input class="radio autosubmit" type="radio" name="archived" value="2" tal:attributes="checked python:archived==2" /> | |
85 <tal:block metal:define-slot="text_completed">Show Completed Projects</tal:block> | |
86 <input class="autosubmit" type="submit" value="Change" /> | |
87 </div> | |
88 <div class="atoz" tal:condition="python:sortby in ['name','scholar']"> | |
89 <ul class="inline"> | |
90 <li tal:repeat="letter python:modules['string'].uppercase"> | |
91 <a tal:attributes="href string:#$letter" tal:content="letter"/><tal:block tal:condition="not:repeat/letter/end"> |</tal:block> | |
92 </li> | |
93 </ul> | |
94 </div> | |
95 </form> | |
26
8a99ad8713d6
new common template for fragments. new styles for servicebox.
casties
parents:
diff
changeset
|
96 </div> |
8a99ad8713d6
new common template for fragments. new styles for servicebox.
casties
parents:
diff
changeset
|
97 |
86 | 98 |
99 <!-- short person entry --> | |
100 <tr class="line" metal:define-macro="staff_member_row"> | |
143 | 101 <td width="25%"> |
86 | 102 <a tal:attributes="href python:member.getUrl(baseUrl=memBaseUrl)"> |
103 <span tal:replace="member/content/first_name" /> | |
104 <b><span tal:replace="member/content/last_name" /></b> | |
105 </a> | |
106 <tal:block metal:define-slot="name_more"/> | |
107 </td> | |
108 <td><span tal:replace="python:here.replaceNotEmpty('%s ',member.content.titles_new)" /> (<span | |
109 tal:replace="python:here.replaceNotEmpty('%s, ',member.content.status)" /> <span | |
110 tal:replace="python:here.replaceNotEmpty('%s',member.content.date_stay_at_mpiwg)" /><span | |
111 tal:replace="python:here.replaceNotEmpty(', funded by the %s',member.content.funded_by)" />)<tal:x | |
89 | 112 condition="python:member.content.current_work_p=='yes'"><i |
113 tal:content="python:here.replaceNotEmpty(': %s',member.content.current_work)" /> | |
86 | 114 </tal:x> <tal:block tal:condition="python:member.content.e_mail_p=='yes'"> |
115 <br /> | |
116 <a class="email" tal:attributes="href python:'mailto:'+member.content.e_mail" tal:content="member/content/e_mail">[FMP-field: | |
117 e_mail]</a> | |
118 </tal:block></td> | |
119 </tr> | |
120 <!-- /short person entry --> | |
121 | |
122 | |
92 | 123 <!-- two-column book entry --> |
124 <div class="mini book" metal:define-macro="book_col" | |
125 tal:define="bookurl python:book.getUrl(baseUrl=bookroot); imageurl book/getImageUrl;"> | |
126 <div class="type" tal:content="python:book.getInfo('pubtype')">Book</div> | |
127 <div class="thumb" tal:condition="imageurl"> | |
128 <a tal:attributes="href bookurl"><img tal:condition="imageurl" tal:attributes="src imageurl" alt=""/></a> | |
129 </div> | |
130 <h2 tal:content="python:book.getInfo('title')">On historicizing epistemology : an essay</h2> | |
131 <div class="author"> | |
132 <span tal:repeat="author python:book.getByPrefix('author_')"> | |
133 <tal:block tal:define="url python:author[0]; name python:author[2];"> | |
134 <a tal:attributes="href url" tal:omit-tag="not:url" tal:content="name" /><tal:block | |
135 tal:condition="not:repeat/author/end">;</tal:block> | |
136 </tal:block> | |
137 </span> | |
138 </div> | |
139 <p> | |
140 <span tal:replace="structure python:book.getInfo('short_summary').replace('\n','<br/>\n')">Epistemology, as generally | |
141 understood by philosophers of science, is rather remote from the history of science and from historical concerns in general.</span> | |
142 <a tal:attributes="href bookurl" class="internal">More</a> | |
143 </p> | |
144 </div> | |
145 <!-- /two-column book entry --> | |
86 | 146 |
159 | 147 <!-- radiobutton for yes/no form. |
148 @param name: parameter name | |
149 @param value: parameter value --> | |
150 <span metal:define-macro="yesno_input_radio"> | |
151 <input type="radio" tal:attributes="name name; checked python:value=='yes'" value="yes"/> | |
152 yes | |
153 <input type="radio" tal:attributes="name name; checked python:value!='yes'" value="no"/> | |
154 no | |
155 </span> | |
156 <!-- /yesno_input_radio --> | |
157 | |
158 | |
26
8a99ad8713d6
new common template for fragments. new styles for servicebox.
casties
parents:
diff
changeset
|
159 </body> |
8a99ad8713d6
new common template for fragments. new styles for servicebox.
casties
parents:
diff
changeset
|
160 </html> |