Mercurial > hg > MPIWGWeb
annotate zpt/www/common_template.zpt @ 143:636fc61e64e7
more style
author | casties |
---|---|
date | Fri, 31 May 2013 20:16:44 +0200 |
parents | 782477730916 |
children | ee79f6ba8d01 |
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> |
8a99ad8713d6
new common template for fragments. new styles for servicebox.
casties
parents:
diff
changeset
|
55 </div> |
8a99ad8713d6
new common template for fragments. new styles for servicebox.
casties
parents:
diff
changeset
|
56 <!-- feature --> |
8a99ad8713d6
new common template for fragments. new styles for servicebox.
casties
parents:
diff
changeset
|
57 |
86 | 58 |
59 <!-- short person entry --> | |
60 <tr class="line" metal:define-macro="staff_member_row"> | |
143 | 61 <td width="25%"> |
86 | 62 <a tal:attributes="href python:member.getUrl(baseUrl=memBaseUrl)"> |
63 <span tal:replace="member/content/first_name" /> | |
64 <b><span tal:replace="member/content/last_name" /></b> | |
65 </a> | |
66 <tal:block metal:define-slot="name_more"/> | |
67 </td> | |
68 <td><span tal:replace="python:here.replaceNotEmpty('%s ',member.content.titles_new)" /> (<span | |
69 tal:replace="python:here.replaceNotEmpty('%s, ',member.content.status)" /> <span | |
70 tal:replace="python:here.replaceNotEmpty('%s',member.content.date_stay_at_mpiwg)" /><span | |
71 tal:replace="python:here.replaceNotEmpty(', funded by the %s',member.content.funded_by)" />)<tal:x | |
89 | 72 condition="python:member.content.current_work_p=='yes'"><i |
73 tal:content="python:here.replaceNotEmpty(': %s',member.content.current_work)" /> | |
86 | 74 </tal:x> <tal:block tal:condition="python:member.content.e_mail_p=='yes'"> |
75 <br /> | |
76 <a class="email" tal:attributes="href python:'mailto:'+member.content.e_mail" tal:content="member/content/e_mail">[FMP-field: | |
77 e_mail]</a> | |
78 </tal:block></td> | |
79 </tr> | |
80 <!-- /short person entry --> | |
81 | |
82 | |
92 | 83 <!-- two-column book entry --> |
84 <div class="mini book" metal:define-macro="book_col" | |
85 tal:define="bookurl python:book.getUrl(baseUrl=bookroot); imageurl book/getImageUrl;"> | |
86 <div class="type" tal:content="python:book.getInfo('pubtype')">Book</div> | |
87 <div class="thumb" tal:condition="imageurl"> | |
88 <a tal:attributes="href bookurl"><img tal:condition="imageurl" tal:attributes="src imageurl" alt=""/></a> | |
89 </div> | |
90 <h2 tal:content="python:book.getInfo('title')">On historicizing epistemology : an essay</h2> | |
91 <div class="author"> | |
92 <span tal:repeat="author python:book.getByPrefix('author_')"> | |
93 <tal:block tal:define="url python:author[0]; name python:author[2];"> | |
94 <a tal:attributes="href url" tal:omit-tag="not:url" tal:content="name" /><tal:block | |
95 tal:condition="not:repeat/author/end">;</tal:block> | |
96 </tal:block> | |
97 </span> | |
98 </div> | |
99 <p> | |
100 <span tal:replace="structure python:book.getInfo('short_summary').replace('\n','<br/>\n')">Epistemology, as generally | |
101 understood by philosophers of science, is rather remote from the history of science and from historical concerns in general.</span> | |
102 <a tal:attributes="href bookurl" class="internal">More</a> | |
103 </p> | |
104 </div> | |
105 <!-- /two-column book entry --> | |
86 | 106 |
26
8a99ad8713d6
new common template for fragments. new styles for servicebox.
casties
parents:
diff
changeset
|
107 </body> |
8a99ad8713d6
new common template for fragments. new styles for servicebox.
casties
parents:
diff
changeset
|
108 </html> |