1 <html xmlns="http://www.w3.org/1999/xhtml" metal:use-macro="container/main_template_view/macros/master">
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" />
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>
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.
18 <div metal:fill-slot="main" tal:omit-tag="">
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, here.default_batch_size, int(b_start), orphan=1)" class="listing" cellspacing="0">
25 <td colspan="2"><span metal:use-macro="here/batch_macros/macros/navigation">batch navigation</span></td>
27 <tbody tal:condition="batch" tal:omit-tag="" tal:repeat="match batch">
28 <tr tal:define="ob match/getObject ;
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'">
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" />
37 <a href="." tal:attributes="href url" tal:content="title">Object title</a>
40 <tr tal:condition="match/Description">
44 <td tal:content="structure match/Description">
49 <tr tal:condition="not:batch">
50 <td colspan="2" i18n:translate="">No result</td>
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>