Mercurial > hg > MPIWGWeb
annotate zpt/www/common_template.zpt @ 284:1a103b073c72 default tip
make favicon url host and schema relative.
author | casties |
---|---|
date | Thu, 25 Jun 2015 17:44:57 +0200 |
parents | 45ef92d6aa8c |
children |
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"> | |
181 | 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> | |
163 | 66 </li> |
181 | 67 <li><input class="radio autosubmit" type="radio" name="sortby" value="name" tal:attributes="checked python:sortby=='name'" |
68 /><tal:block metal:define-slot="text_name">Project Title</tal:block> | |
163 | 69 </li> |
181 | 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> | |
163 | 72 </li> |
181 | 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> | |
163 | 75 </li> |
181 | 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> | |
163 | 78 </li> |
79 </ul> | |
80 </div> | |
81 <div class="options"> | |
181 | 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> | |
163 | 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 | |
237 | 111 tal:replace="python:here.replaceNotEmpty(', funded by the %s',member.content.funded_by)" />)<i |
89 | 112 tal:content="python:here.replaceNotEmpty(': %s',member.content.current_work)" /> |
237 | 113 <tal:block tal:condition="python:member.content.e_mail_p=='yes'"> |
86 | 114 <br /> |
115 <a class="email" tal:attributes="href python:'mailto:'+member.content.e_mail" tal:content="member/content/e_mail">[FMP-field: | |
116 e_mail]</a> | |
117 </tal:block></td> | |
118 </tr> | |
119 <!-- /short person entry --> | |
120 | |
121 | |
92 | 122 <!-- two-column book entry --> |
123 <div class="mini book" metal:define-macro="book_col" | |
124 tal:define="bookurl python:book.getUrl(baseUrl=bookroot); imageurl book/getImageUrl;"> | |
125 <div class="type" tal:content="python:book.getInfo('pubtype')">Book</div> | |
126 <div class="thumb" tal:condition="imageurl"> | |
127 <a tal:attributes="href bookurl"><img tal:condition="imageurl" tal:attributes="src imageurl" alt=""/></a> | |
128 </div> | |
129 <h2 tal:content="python:book.getInfo('title')">On historicizing epistemology : an essay</h2> | |
130 <div class="author"> | |
131 <span tal:repeat="author python:book.getByPrefix('author_')"> | |
132 <tal:block tal:define="url python:author[0]; name python:author[2];"> | |
133 <a tal:attributes="href url" tal:omit-tag="not:url" tal:content="name" /><tal:block | |
134 tal:condition="not:repeat/author/end">;</tal:block> | |
135 </tal:block> | |
136 </span> | |
137 </div> | |
138 <p> | |
139 <span tal:replace="structure python:book.getInfo('short_summary').replace('\n','<br/>\n')">Epistemology, as generally | |
140 understood by philosophers of science, is rather remote from the history of science and from historical concerns in general.</span> | |
141 <a tal:attributes="href bookurl" class="internal">More</a> | |
142 </p> | |
143 </div> | |
144 <!-- /two-column book entry --> | |
86 | 145 |
159 | 146 <!-- radiobutton for yes/no form. |
147 @param name: parameter name | |
148 @param value: parameter value --> | |
149 <span metal:define-macro="yesno_input_radio"> | |
150 <input type="radio" tal:attributes="name name; checked python:value=='yes'" value="yes"/> | |
151 yes | |
152 <input type="radio" tal:attributes="name name; checked python:value!='yes'" value="no"/> | |
153 no | |
154 </span> | |
155 <!-- /yesno_input_radio --> | |
156 | |
157 | |
230 | 158 <!-- sidebar month calendar for events |
159 @param cal: month calendar object from getMonthCalendar(dateObject=showDate, lang=lang) --> | |
160 <div class="sideblock calendar" metal:define-macro="sideblock_calendar"> | |
161 <h2> | |
162 <a class="page_prev" tal:attributes="href string:?year=${cal/prev/year}&month=${cal/prev/month}"><img tal:attributes="src string:$root/images/slider_prev.png"/></a> | |
163 <span tal:content="cal/datestring"/> | |
164 <a class="page_next" tal:attributes="href string:?year=${cal/next/year}&month=${cal/next/month}"><img tal:attributes="src string:$root/images/slider_next.png"/></a> | |
165 </h2> | |
166 <table> | |
167 <tr> | |
168 <th tal:repeat="day cal/weekdays" tal:content="day"/> | |
169 </tr> | |
170 <tr tal:repeat="week cal/weeks"> | |
171 <td tal:repeat="day week"><span tal:condition="not:day/events" tal:content="day/day"/><a tal:condition="day/events" tal:content="day/day" tal:attributes="href python:'?year=%s&month=%s#%s'%(cal['year'],cal['month'],day['events'][0].getDate());"/></td> | |
172 </tr> | |
173 </table> | |
174 </div> | |
175 <!-- /sideblock_calendar --> | |
176 | |
26
8a99ad8713d6
new common template for fragments. new styles for servicebox.
casties
parents:
diff
changeset
|
177 </body> |
8a99ad8713d6
new common template for fragments. new styles for servicebox.
casties
parents:
diff
changeset
|
178 </html> |