annotate zpt/project/project_index_html.zpt @ 270:d672a6f6c902 new_pro_struct

make having old navigation configurable.
author casties
date Tue, 30 Sep 2014 12:37:21 +0200
parents 1926bee2aa20
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
34
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
3 <html metal:use-macro="here/pro_sec_template/macros/page">
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
4 <head>
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
5 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
92
45c7b240ee93 book pages and lists.
casties
parents: 90
diff changeset
6 <title metal:fill-slot="title" tal:content="string:${here/getNumber} ${here/getProjectTitle}" />
45c7b240ee93 book pages and lists.
casties
parents: 90
diff changeset
7 <metal:block metal:fill-slot="head">
90
c940af028112 add styles and meta-tags for search.
casties
parents: 81
diff changeset
8 <meta name="description" content="project"/>
c940af028112 add styles and meta-tags for search.
casties
parents: 81
diff changeset
9 <tal:block
c940af028112 add styles and meta-tags for search.
casties
parents: 81
diff changeset
10 tal:define="global proBaseUrl string:$root/${secmap/research}/projects;
c940af028112 add styles and meta-tags for search.
casties
parents: 81
diff changeset
11 global images here/getImageList;
260
4eddd388d490 more work on subproject thumbs.
casties
parents: 259
diff changeset
12 global dept here/getDepartmentId;
4eddd388d490 more work on subproject thumbs.
casties
parents: 259
diff changeset
13 global pNum here/getNumber;" />
4eddd388d490 more work on subproject thumbs.
casties
parents: 259
diff changeset
14 <script tal:content="string:var sliderUrl = 'api/subProjects_slider_html?pro=$pNum';">
4eddd388d490 more work on subproject thumbs.
casties
parents: 259
diff changeset
15 </script>
4eddd388d490 more work on subproject thumbs.
casties
parents: 259
diff changeset
16 <script>
4eddd388d490 more work on subproject thumbs.
casties
parents: 259
diff changeset
17 $(window).on('load', function () {
4eddd388d490 more work on subproject thumbs.
casties
parents: 259
diff changeset
18 $('.ajaxSlider').each(function () {
4eddd388d490 more work on subproject thumbs.
casties
parents: 259
diff changeset
19 var $this = $(this);
4eddd388d490 more work on subproject thumbs.
casties
parents: 259
diff changeset
20 $this.AjaxSlider({
4eddd388d490 more work on subproject thumbs.
casties
parents: 259
diff changeset
21 dataUrl : sliderUrl,
4eddd388d490 more work on subproject thumbs.
casties
parents: 259
diff changeset
22 dataSel : 'div.center>div',
4eddd388d490 more work on subproject thumbs.
casties
parents: 259
diff changeset
23 scrollBy: '130px',
4eddd388d490 more work on subproject thumbs.
casties
parents: 259
diff changeset
24 });
4eddd388d490 more work on subproject thumbs.
casties
parents: 259
diff changeset
25 });
4eddd388d490 more work on subproject thumbs.
casties
parents: 259
diff changeset
26 initialize_swipe(".ajaxSlider");
4eddd388d490 more work on subproject thumbs.
casties
parents: 259
diff changeset
27 });
4eddd388d490 more work on subproject thumbs.
casties
parents: 259
diff changeset
28 </script>
92
45c7b240ee93 book pages and lists.
casties
parents: 90
diff changeset
29 </metal:block>
34
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
30 </head>
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
31 <body>
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
32
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
33 <!-- middle column -->
80
b1893c4c9d2c more display of project pages.
casties
parents: 74
diff changeset
34 <div class="center project" metal:fill-slot="center">
b1893c4c9d2c more display of project pages.
casties
parents: 74
diff changeset
35 <!-- version header -->
44
05754bca0114 updated project not current warning.
casties
parents: 43
diff changeset
36 <h2 tal:condition="not:here/isCurrentVersion">
05754bca0114 updated project not current warning.
casties
parents: 43
diff changeset
37 This is an outdated version of this project! For the current version, please refer to
05754bca0114 updated project not current warning.
casties
parents: 43
diff changeset
38 <a tal:define="parentUrl python:here.aq_parent.getUrl(baseUrl=proBaseUrl)"
05754bca0114 updated project not current warning.
casties
parents: 43
diff changeset
39 tal:attributes="href parentUrl" tal:content="parentUrl"/>
05754bca0114 updated project not current warning.
casties
parents: 43
diff changeset
40 </h2>
39
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
41 <tal:x tal:define="started here/getStartedAt" tal:condition="here/isArchivedProject">
34
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
42 <p>
39
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
43 (<span tal:condition="started" tal:content="string:$started-"/><span tal:condition="not:started">Completed:</span>
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
44 <span tal:content="here/getCompletedAt"/>)
34
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
45 </p>
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
46 </tal:x>
80
b1893c4c9d2c more display of project pages.
casties
parents: 74
diff changeset
47 <!-- /version header -->
34
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
48
90
c940af028112 add styles and meta-tags for search.
casties
parents: 81
diff changeset
49 <h1 class="mpiwg-title" tal:content="here/getProjectTitle">History of Scientific Objectivity, 18th-19th Cs</h1>
c940af028112 add styles and meta-tags for search.
casties
parents: 81
diff changeset
50 <h3 class="authors mpiwg-authors">
35
38cbbeaf266b more work on projects.
casties
parents: 34
diff changeset
51 <tal:block tal:repeat="person here/getResponsibleScientistsList">
100
f4ac675b2031 more members pages.
casties
parents: 98
diff changeset
52 <a class="mpiwg-author" tal:define="username person/username|nothing; key person/key|nothing;"
f4ac675b2031 more members pages.
casties
parents: 98
diff changeset
53 tal:omit-tag="python:not username or not here.getStaffFolder().isActiveMember(key=key)"
f4ac675b2031 more members pages.
casties
parents: 98
diff changeset
54 tal:attributes="href string:$root/${secmap/staff}/members/$username" tal:content="person/name"> Name of responsible
101
a28e67fbdd31 fix commas in project authors list.
casties
parents: 100
diff changeset
55 person </a><tal:block tal:condition="not:repeat/person/end">, </tal:block>
34
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
56 </tal:block>
80
b1893c4c9d2c more display of project pages.
casties
parents: 74
diff changeset
57 </h3>
34
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
58
80
b1893c4c9d2c more display of project pages.
casties
parents: 74
diff changeset
59 <h3 class="authors" tal:define="others here/getInvolvedScholars" tal:condition="others">
b1893c4c9d2c more display of project pages.
casties
parents: 74
diff changeset
60 Other involved scholars: <span tal:content="structure others">Scholars </span>
b1893c4c9d2c more display of project pages.
casties
parents: 74
diff changeset
61 </h3>
b1893c4c9d2c more display of project pages.
casties
parents: 74
diff changeset
62 <h3 class="authors" tal:define="partners here/getCooperationPartners" tal:condition="partners">
b1893c4c9d2c more display of project pages.
casties
parents: 74
diff changeset
63 Cooperation Partners: <span tal:content="structure partners">Partners</span>
b1893c4c9d2c more display of project pages.
casties
parents: 74
diff changeset
64 </h3>
b1893c4c9d2c more display of project pages.
casties
parents: 74
diff changeset
65
b1893c4c9d2c more display of project pages.
casties
parents: 74
diff changeset
66 <div class="description">
b1893c4c9d2c more display of project pages.
casties
parents: 74
diff changeset
67 <!-- inline image -->
98
d29425348cbd show image without caption in project description if its the first one.
casties
parents: 97
diff changeset
68 <tal:block tal:condition="images" tal:repeat="image python:images">
d29425348cbd show image without caption in project description if its the first one.
casties
parents: 97
diff changeset
69 <div class="figure" tal:condition="python:image.getCaption() or repeat['image'].start">
d29425348cbd show image without caption in project description if its the first one.
casties
parents: 97
diff changeset
70 <div class="image">
d29425348cbd show image without caption in project description if its the first one.
casties
parents: 97
diff changeset
71 <a tal:define="url image/getLink" tal:attributes="href url" tal:omit-tag="not:url" target="_blank"><img
d29425348cbd show image without caption in project description if its the first one.
casties
parents: 97
diff changeset
72 tal:attributes="src image/getUrl" alt="" /></a>
d29425348cbd show image without caption in project description if its the first one.
casties
parents: 97
diff changeset
73 </div>
d29425348cbd show image without caption in project description if its the first one.
casties
parents: 97
diff changeset
74 <div class="figcaption" tal:condition="image/caption" tal:content="structure image/getCaption">
d29425348cbd show image without caption in project description if its the first one.
casties
parents: 97
diff changeset
75 J.-A.-D. Ingres: Mme Moitessier, 1856. Oel/Lw. 120 x 92,1 cm. London, National Gallery.
d29425348cbd show image without caption in project description if its the first one.
casties
parents: 97
diff changeset
76 </div>
34
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
77 </div>
98
d29425348cbd show image without caption in project description if its the first one.
casties
parents: 97
diff changeset
78 </tal:block>
97
7b96a85552aa fix bugs in project editing.
casties
parents: 96
diff changeset
79 <!-- project description -->
80
b1893c4c9d2c more display of project pages.
casties
parents: 74
diff changeset
80 <div tal:content="structure python:here.getDescription(filter=True)">Project description</div>
34
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
81 </div>
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
82
98
d29425348cbd show image without caption in project description if its the first one.
casties
parents: 97
diff changeset
83 </div><!-- /center -->
34
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
84
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
85 <!-- right column -->
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
86 <div class="sidebar" metal:fill-slot="sidebar">
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
87
270
d672a6f6c902 make having old navigation configurable.
casties
parents: 268
diff changeset
88 <!-- this project is part of -->
d672a6f6c902 make having old navigation configurable.
casties
parents: 268
diff changeset
89 <tal:block tal:condition="oldnav">
34
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
90 <div class="sideblock"
39
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
91 tal:define="parents here/getSuperProjects;" tal:condition="parents">
34
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
92 <div class="project parent">
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
93 Part of:
40
fd8e78bbc5ed more work on projects.
casties
parents: 39
diff changeset
94 <a tal:define="parent python:parents[-1]" tal:content="parent/getLabel"
270
d672a6f6c902 make having old navigation configurable.
casties
parents: 268
diff changeset
95 tal:attributes="href python:parent.getUrl(baseUrl=proBaseUrl)+test(here.isArchivedProject(),'?archived=2','')" />
34
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
96 </div>
270
d672a6f6c902 make having old navigation configurable.
casties
parents: 268
diff changeset
97 <!-- end parent -->
34
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
98 </div>
270
d672a6f6c902 make having old navigation configurable.
casties
parents: 268
diff changeset
99 </tal:block>
34
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
100 <!-- sideblock -->
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
101
39
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
102 <!-- related projects -->
61
04fb655633ef more cleaning up projects.
casties
parents: 56
diff changeset
103 <div class="sideblock" tal:define="projects here/getRelatedProjectList" tal:condition="projects">
39
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
104 <h2>Related Projects</h2>
80
b1893c4c9d2c more display of project pages.
casties
parents: 74
diff changeset
105 <div class="project" tal:repeat="project projects">
61
04fb655633ef more cleaning up projects.
casties
parents: 56
diff changeset
106 <a tal:attributes="href string:$proBaseUrl/${project/getProjectId}"
04fb655633ef more cleaning up projects.
casties
parents: 56
diff changeset
107 tal:content="project/getProjectLabel" />
34
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
108 </div>
39
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
109 <!-- end item -->
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
110 </div>
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
111 <!-- sideblock -->
34
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
112
39
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
113 <!-- related publications -->
61
04fb655633ef more cleaning up projects.
casties
parents: 56
diff changeset
114 <tal:block tal:define="publications here/getPublicationList">
39
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
115 <div class="sideblock" tal:condition="publications">
34
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
116 <h2>Related Publications</h2>
61
04fb655633ef more cleaning up projects.
casties
parents: 56
diff changeset
117 <tal:block tal:repeat="publication publications">
04fb655633ef more cleaning up projects.
casties
parents: 56
diff changeset
118 <div class="item" tal:define="bookid publication/getBookId" tal:condition="publication/text">
04fb655633ef more cleaning up projects.
casties
parents: 56
diff changeset
119 <tal:y condition="not:bookid">
04fb655633ef more cleaning up projects.
casties
parents: 56
diff changeset
120 <tal:x tal:define="img publication/publicationImage1 | nothing" tal:condition="img">
04fb655633ef more cleaning up projects.
casties
parents: 56
diff changeset
121 <a target="_blank" tal:attributes="href img/absolute_url"> <img width="150"
04fb655633ef more cleaning up projects.
casties
parents: 56
diff changeset
122 tal:attributes="src img/absolute_url" />
04fb655633ef more cleaning up projects.
casties
parents: 56
diff changeset
123 </a>
04fb655633ef more cleaning up projects.
casties
parents: 56
diff changeset
124 <br />
04fb655633ef more cleaning up projects.
casties
parents: 56
diff changeset
125 </tal:x>
04fb655633ef more cleaning up projects.
casties
parents: 56
diff changeset
126 <a tal:define="link publication/link | nothing;" tal:omit-tag="not:link" tal:content="structure publication/text"
04fb655633ef more cleaning up projects.
casties
parents: 56
diff changeset
127 tal:attributes="href link" />
04fb655633ef more cleaning up projects.
casties
parents: 56
diff changeset
128 </tal:y>
04fb655633ef more cleaning up projects.
casties
parents: 56
diff changeset
129 <tal:y condition="bookid">
04fb655633ef more cleaning up projects.
casties
parents: 56
diff changeset
130 <tal:x
04fb655633ef more cleaning up projects.
casties
parents: 56
diff changeset
131 tal:define="book python:here.books[bookid]; bookurl python:book.getUrl(baseUrl=root+'/'+secmap['resources']+'/books')">
04fb655633ef more cleaning up projects.
casties
parents: 56
diff changeset
132 <a tal:attributes="href bookurl"><img width="150" tal:attributes="src book/getImageUrl" /></a>
04fb655633ef more cleaning up projects.
casties
parents: 56
diff changeset
133 <br />
04fb655633ef more cleaning up projects.
casties
parents: 56
diff changeset
134 <a tal:attributes="href bookurl" tal:content="structure publication/text" />
04fb655633ef more cleaning up projects.
casties
parents: 56
diff changeset
135 </tal:x>
04fb655633ef more cleaning up projects.
casties
parents: 56
diff changeset
136 </tal:y>
63
fd6931bd49c8 more cleaning up projects.
casties
parents: 61
diff changeset
137 <tal:x tal:condition="python:hasattr(publication, 'description')">
61
04fb655633ef more cleaning up projects.
casties
parents: 56
diff changeset
138 <div tal:content="structure publication/description" />
34
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
139 </tal:x>
80
b1893c4c9d2c more display of project pages.
casties
parents: 74
diff changeset
140 </div><!-- end item -->
61
04fb655633ef more cleaning up projects.
casties
parents: 56
diff changeset
141 </tal:block>
34
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
142 </div>
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
143 <!-- sideblock -->
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
144
61
04fb655633ef more cleaning up projects.
casties
parents: 56
diff changeset
145 <div class="sideblock" tal:condition="here/hasAdditionalPublications">
04fb655633ef more cleaning up projects.
casties
parents: 56
diff changeset
146 <h2>Additional Publications</h2>
34
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
147 <div class="item">
74
e424b68244c8 better template for additional project publications.
casties
parents: 63
diff changeset
148 <a class="internal" tal:attributes="href python:here.getUrl(baseUrl=proBaseUrl)+'/additional_publications_html'">
61
04fb655633ef more cleaning up projects.
casties
parents: 56
diff changeset
149 Publications in the context of this project
04fb655633ef more cleaning up projects.
casties
parents: 56
diff changeset
150 </a>
34
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
151 </div>
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
152 </div>
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
153 </tal:block>
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
154 <!-- related publications -->
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
155
270
d672a6f6c902 make having old navigation configurable.
casties
parents: 268
diff changeset
156 <!-- projects covered -->
d672a6f6c902 make having old navigation configurable.
casties
parents: 268
diff changeset
157 <tal:block tal:condition="oldnav">
34
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
158 <div class="sideblock"
270
d672a6f6c902 make having old navigation configurable.
casties
parents: 268
diff changeset
159 tal:define="children python:here.getSubProjects(archived=archived);"
39
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
160 tal:condition="children">
34
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
161 <h2>
43
196db636a8fd fixed sorting of project lists.
casties
parents: 40
diff changeset
162 Projects
39
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
163 <span class="proj_state">
270
d672a6f6c902 make having old navigation configurable.
casties
parents: 268
diff changeset
164 <a href="?" tal:omit-tag="python:not (here.isArchivedProject() or archived==2)">current</a>
39
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
165 &nbsp;
270
d672a6f6c902 make having old navigation configurable.
casties
parents: 268
diff changeset
166 <a href="?archived=2" tal:omit-tag="python:here.isArchivedProject() or archived==2">completed</a>
34
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
167 </span>
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
168 </h2>
39
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
169 <tal:y tal:repeat="child children">
270
d672a6f6c902 make having old navigation configurable.
casties
parents: 268
diff changeset
170 <tal:x tal:condition="python:not child.isArchivedProject()">
34
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
171 <div class="project">
39
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
172 <a tal:content="child/getLabel"
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
173 tal:attributes="href python:child.getUrl(baseUrl=proBaseUrl)" />
34
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
174 </div>
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
175 </tal:x>
270
d672a6f6c902 make having old navigation configurable.
casties
parents: 268
diff changeset
176 <tal:x tal:condition="python:child.isArchivedProject()">
39
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
177 <div class="project inactive" tal:define="started child/getStartedAt">
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
178 <a tal:content="child/getLabel"
270
d672a6f6c902 make having old navigation configurable.
casties
parents: 268
diff changeset
179 tal:attributes="href python:child.getUrl(baseUrl=proBaseUrl)+'?archived=2'" />
39
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
180 (<span tal:condition="started" tal:content="string:$started-"/><tal:x tal:condition="not:started">Completed: </tal:x><span tal:content="child/getCompletedAt"/>)
34
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
181 </div>
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
182 </tal:x>
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
183 </tal:y>
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
184 </div>
270
d672a6f6c902 make having old navigation configurable.
casties
parents: 268
diff changeset
185 </tal:block>
34
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
186 <!-- projects covered -->
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
187
81
975a8d88e315 new editable info blocks for projects.
casties
parents: 80
diff changeset
188 <!-- custom info blocks -->
975a8d88e315 new editable info blocks for projects.
casties
parents: 80
diff changeset
189 <div class="sideblock" tal:repeat="block here/getInfoBlockList">
975a8d88e315 new editable info blocks for projects.
casties
parents: 80
diff changeset
190 <h2 tal:content="block/getTitle">Info block</h2>
975a8d88e315 new editable info blocks for projects.
casties
parents: 80
diff changeset
191 <div class="item" tal:repeat="item block/getItems">
205
2b27332c9545 project info block links with target=_blank
casties
parents: 101
diff changeset
192 <a class="external" tal:attributes="href item/link" target="_blank" tal:omit-tag="not:item/link"
81
975a8d88e315 new editable info blocks for projects.
casties
parents: 80
diff changeset
193 tal:content="structure item/text">
975a8d88e315 new editable info blocks for projects.
casties
parents: 80
diff changeset
194 info item
975a8d88e315 new editable info blocks for projects.
casties
parents: 80
diff changeset
195 </a>
975a8d88e315 new editable info blocks for projects.
casties
parents: 80
diff changeset
196 </div>
975a8d88e315 new editable info blocks for projects.
casties
parents: 80
diff changeset
197 </div>
975a8d88e315 new editable info blocks for projects.
casties
parents: 80
diff changeset
198
249
f07dc0d2c60c add project calendar (ticket #137).
casties
parents: 225
diff changeset
199 <!-- project calendar -->
f07dc0d2c60c add project calendar (ticket #137).
casties
parents: 225
diff changeset
200 <div class="sideblock" tal:define="calendar here/getProjectCalendar" tal:condition="calendar">
f07dc0d2c60c add project calendar (ticket #137).
casties
parents: 225
diff changeset
201 <tal:block tal:define="upcoming python:calendar.getFlag('only_upcoming', False);
250
2e507e256726 added filtering by category (including substring) to project calendar display.
casties
parents: 249
diff changeset
202 show_num python:calendar.getFlag('show_num', 2); cat_match python:calendar.getFlag('cat_match');
2e507e256726 added filtering by category (including substring) to project calendar display.
casties
parents: 249
diff changeset
203 filter python:here.getProjectNumberMatcher(cat_match, lambda x:unicode(x.getValue('categories')));
2e507e256726 added filtering by category (including substring) to project calendar display.
casties
parents: 249
diff changeset
204 events python:test(upcoming, calendar.getAllItemsFromTodayOn(filter=filter)[:show_num], calendar.getNext(show_num, reverse=False, filter=filter))"
249
f07dc0d2c60c add project calendar (ticket #137).
casties
parents: 225
diff changeset
205 tal:condition="events">
f07dc0d2c60c add project calendar (ticket #137).
casties
parents: 225
diff changeset
206 <h2 class="line" tal:condition="upcoming">Upcoming events</h2>
f07dc0d2c60c add project calendar (ticket #137).
casties
parents: 225
diff changeset
207 <h2 class="line" tal:condition="not:upcoming">Events</h2>
f07dc0d2c60c add project calendar (ticket #137).
casties
parents: 225
diff changeset
208 <div class="item" tal:repeat="event events">
f07dc0d2c60c add project calendar (ticket #137).
casties
parents: 225
diff changeset
209 <tal:block tal:define="url python:event.getValue('url'); loc python:event.getValue('location');">
f07dc0d2c60c add project calendar (ticket #137).
casties
parents: 225
diff changeset
210 <span tal:content="python:event.getDate()" />:
f07dc0d2c60c add project calendar (ticket #137).
casties
parents: 225
diff changeset
211 <span tal:replace="loc" /> <span tal:condition="loc">&#150;</span>
f07dc0d2c60c add project calendar (ticket #137).
casties
parents: 225
diff changeset
212 <a target="_blank" tal:omit-tag="not:url" tal:attributes="href url">
f07dc0d2c60c add project calendar (ticket #137).
casties
parents: 225
diff changeset
213 <i><span tal:replace="python:event.getValue('title')" /></i>
f07dc0d2c60c add project calendar (ticket #137).
casties
parents: 225
diff changeset
214 </a>
f07dc0d2c60c add project calendar (ticket #137).
casties
parents: 225
diff changeset
215 </tal:block>
f07dc0d2c60c add project calendar (ticket #137).
casties
parents: 225
diff changeset
216 </div>
f07dc0d2c60c add project calendar (ticket #137).
casties
parents: 225
diff changeset
217 </tal:block>
f07dc0d2c60c add project calendar (ticket #137).
casties
parents: 225
diff changeset
218 </div>
f07dc0d2c60c add project calendar (ticket #137).
casties
parents: 225
diff changeset
219
39
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
220 <!-- related digital sources -->
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
221 <div class="sideblock" tal:define="sources here/getRelatedDigitalSources" tal:condition="sources">
81
975a8d88e315 new editable info blocks for projects.
casties
parents: 80
diff changeset
222 <h2>OLD! Related digital sources</h2>
39
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
223 <div class="item" tal:content="structure sources">
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
224 digital sources
34
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
225 </div>
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
226 </div>
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
227
39
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
228 <!-- funding institutions -->
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
229 <div class="sideblock" tal:define="funding here/getFundingInstitutions" tal:condition="funding">
34
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
230 <h2>Funding Institutions</h2>
39
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
231 <div class="item" tal:content="structure funding">
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
232 Funding
bbad6a092861 more work on projects.
casties
parents: 35
diff changeset
233 </div>
34
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
234 </div>
249
f07dc0d2c60c add project calendar (ticket #137).
casties
parents: 225
diff changeset
235
34
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
236 <!-- sideblock -->
220
81e9c8252747 getTags retruns now None if there aren't any
dwinter
parents: 219
diff changeset
237 <div class="sideblock" tal:define="tags python:here.thesaurus.getTagsAsHash(here.getId())" tal:condition="tags">
224
5d17c46ebffa fixed links for thesaurus and projects.
casties
parents: 221
diff changeset
238 <h2>Keywords</h2>
5d17c46ebffa fixed links for thesaurus and projects.
casties
parents: 221
diff changeset
239 <div class="item" tal:define="anc python:here.thesaurus.thes_quote(here.getId())">
5d17c46ebffa fixed links for thesaurus and projects.
casties
parents: 221
diff changeset
240 <tal:x tal:repeat="key python:tags.keys()">
5d17c46ebffa fixed links for thesaurus and projects.
casties
parents: 221
diff changeset
241 <tal:y tal:repeat="tag python:tags[key]">
225
e87c1475b3d6 fix hyphen in keyword list.
casties
parents: 224
diff changeset
242 <tal:z tal:condition="python:not (repeat['key'].start and repeat['tag'].start)">- </tal:z><a tal:content="python:here.thesaurus.formatTag(tag)"
224
5d17c46ebffa fixed links for thesaurus and projects.
casties
parents: 221
diff changeset
243 tal:attributes="href python:root+'/'+secmap['research']+'/thesaurus/show_'+lang+'.html?dep='+key+'&open='+here.thesaurus.thes_quote(tag)+'#'+anc">tag</a>
5d17c46ebffa fixed links for thesaurus and projects.
casties
parents: 221
diff changeset
244 </tal:y>
5d17c46ebffa fixed links for thesaurus and projects.
casties
parents: 221
diff changeset
245 </tal:x>
219
5ffb9e7167b6 thesaurus auf project seinte
dwinter
parents: 205
diff changeset
246
5ffb9e7167b6 thesaurus auf project seinte
dwinter
parents: 205
diff changeset
247 </div>
5ffb9e7167b6 thesaurus auf project seinte
dwinter
parents: 205
diff changeset
248 </div>
34
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
249 </div>
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
250 <!-- sidebar -->
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
251
260
4eddd388d490 more work on subproject thumbs.
casties
parents: 259
diff changeset
252 <!-- subrow -->
261
2028488642cf omit subprojects element if empty.
casties
parents: 260
diff changeset
253 <div id="subrow" metal:fill-slot="subrow"
268
1926bee2aa20 show only "project" projects in scroll-strip on project page.
casties
parents: 264
diff changeset
254 tal:define="projects python:here.getProjectsAsList(start=pNum, filter=lambda p:p.getNumber()!=pNum and p.getProjectType()=='Project');"
261
2028488642cf omit subprojects element if empty.
casties
parents: 260
diff changeset
255 tal:condition="projects">
260
4eddd388d490 more work on subproject thumbs.
casties
parents: 259
diff changeset
256 <div class="leftbox"></div>
4eddd388d490 more work on subproject thumbs.
casties
parents: 259
diff changeset
257 <div class="main">
4eddd388d490 more work on subproject thumbs.
casties
parents: 259
diff changeset
258 <!-- sub-project thumbs -->
4eddd388d490 more work on subproject thumbs.
casties
parents: 259
diff changeset
259 <div class="box">
261
2028488642cf omit subprojects element if empty.
casties
parents: 260
diff changeset
260 <div tal:attributes="class python:test(len(projects)>5, 'ajaxSlider', None);">
260
4eddd388d490 more work on subproject thumbs.
casties
parents: 259
diff changeset
261 <div class="row quintuple">
4eddd388d490 more work on subproject thumbs.
casties
parents: 259
diff changeset
262 <div class="col" tal:repeat="project python:projects[:5]">
4eddd388d490 more work on subproject thumbs.
casties
parents: 259
diff changeset
263 <div class="mini project"
4eddd388d490 more work on subproject thumbs.
casties
parents: 259
diff changeset
264 tal:define="url python:project.getUrl(baseUrl=proBaseUrl)">
4eddd388d490 more work on subproject thumbs.
casties
parents: 259
diff changeset
265 <div class="thumb">
4eddd388d490 more work on subproject thumbs.
casties
parents: 259
diff changeset
266 <a tal:attributes="href url"><img
4eddd388d490 more work on subproject thumbs.
casties
parents: 259
diff changeset
267 tal:attributes="src python:project.getThumbUrl(default=root+'/images/dummy_thumb.jpg')" /></a>
4eddd388d490 more work on subproject thumbs.
casties
parents: 259
diff changeset
268 </div>
4eddd388d490 more work on subproject thumbs.
casties
parents: 259
diff changeset
269 <div class="title">
4eddd388d490 more work on subproject thumbs.
casties
parents: 259
diff changeset
270 <a tal:attributes="href url"
4eddd388d490 more work on subproject thumbs.
casties
parents: 259
diff changeset
271 tal:content="project/getLabel"> Mental Models in
4eddd388d490 more work on subproject thumbs.
casties
parents: 259
diff changeset
272 the History of Knowledge </a>
4eddd388d490 more work on subproject thumbs.
casties
parents: 259
diff changeset
273 </div>
4eddd388d490 more work on subproject thumbs.
casties
parents: 259
diff changeset
274 <div class="author"
4eddd388d490 more work on subproject thumbs.
casties
parents: 259
diff changeset
275 tal:content="python:project.getContent('xdata_01')">
4eddd388d490 more work on subproject thumbs.
casties
parents: 259
diff changeset
276 Matteo Valleriani, Jürgen Renn</div>
4eddd388d490 more work on subproject thumbs.
casties
parents: 259
diff changeset
277 </div>
4eddd388d490 more work on subproject thumbs.
casties
parents: 259
diff changeset
278 </div>
4eddd388d490 more work on subproject thumbs.
casties
parents: 259
diff changeset
279 </div>
4eddd388d490 more work on subproject thumbs.
casties
parents: 259
diff changeset
280 <!-- /row -->
4eddd388d490 more work on subproject thumbs.
casties
parents: 259
diff changeset
281 </div>
4eddd388d490 more work on subproject thumbs.
casties
parents: 259
diff changeset
282 <!-- /item -->
4eddd388d490 more work on subproject thumbs.
casties
parents: 259
diff changeset
283 </div>
4eddd388d490 more work on subproject thumbs.
casties
parents: 259
diff changeset
284 </div>
4eddd388d490 more work on subproject thumbs.
casties
parents: 259
diff changeset
285 </div>
4eddd388d490 more work on subproject thumbs.
casties
parents: 259
diff changeset
286
34
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
287 </body>
b8ced08ebea9 working on projects.
casties
parents:
diff changeset
288 </html>