495b40ca10e47414f4ab8efe6edeebb3143fdaba
[Plinn.git] / skins / custom_content / topic_view.pt
1 <html xmlns="http://www.w3.org/1999/xhtml" metal:use-macro="container/main_template_view/macros/master">
2
3 <head>
4 <title>Topic view</title>
5 <meta http-equiv="content-type" content="text/html;charset=UTF-8"/>
6 <base href="." tal:attributes="href python: here.absolute_url() + '/'" metal:fill-slot="base" />
7 </head>
8
9 <body i18n:domain="plinn">
10 <div metal:fill-slot="header" tal:omit-tag="">
11 <h1 id="DesktopTitle">
12 <span tal:replace="here/title_or_id">Page Title</span>
13 </h1>
14 <div id="DesktopDescription" tal:content="structure here/Description">
15 Description of the resource goes here, perhaps even wrapping lines; this is to make it long enough to test.
16 </div>
17 </div>
18 <div metal:fill-slot="main" tal:omit-tag="">
19 <table tal:define="
20 b_start string:0;b_start request/b_start | b_start;
21 results here/queryCatalog;
22 Batch python:modules['Products.Plinn'].Batch;
23 global batch python:Batch(results, 20, int(b_start), orphan=1)" class="listing" cellspacing="0">
24 <tr>
25 <td colspan="2"><span metal:use-macro="here/batch_macros/macros/navigation">batch navigation</span></td>
26 </tr>
27 <tbody tal:condition="batch" tal:omit-tag="" tal:repeat="match batch">
28 <tr tal:define="ob match/getObject ;
29 url match/getURL;
30 title python:match.Title or ob.id;
31 icon python:here.restrictedTraverse(ob.getIcon())"
32 tal:attributes="class python:repeat['match'].odd() and 'odd' or 'even'">
33 <td width="20">
34 <img src="." alt="icon" height="16" width="16" tal:attributes="src icon/absolute_url|ob/getIcon ; alt ob/getPortalTypeName|ob/meta_type; height icon/height|string:16; width icon/width|string:16" i18n:attributes="alt" />
35 </td>
36 <td>
37 <a href="." tal:attributes="href url" tal:content="title">Object title</a>
38 </td>
39 </tr>
40 <tr tal:condition="match/Description">
41 <td>
42 <br />
43 </td>
44 <td tal:content="structure match/Description">
45 description
46 </td>
47 </tr>
48 </tbody>
49 <tr tal:condition="not:batch">
50 <td colspan="2" i18n:translate="">No result</td>
51 </tr>
52 </table>
53 <div tal:define="topics python:here.listNearestFolderContents(contentFilter={'portal_type':'Topic'})" tal:condition="topics" tal:omit-tag="">
54 <h4 i18n:translate="">Subtopics</h4>
55 <div tal:repeat="topic topics">
56 <a href="." tal:attributes="href topic/absolute_url" tal:define="topictitle python:topic.Title() or topic.getId()">
57 <img height="16" width="16" border="0" alt="Topic" tal:attributes="src here/topic_icon.gif/absolute_url" i18n:attributes="alt" />
58 <span tal:replace="topictitle">Topic Title</span></a>
59 </div>
60 </div>
61 </div>
62 </body>
63
64 </html>