1 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" |
---|
2 | xmlns:tal="http://xml.zope.org/namespaces/tal" |
---|
3 | xmlns:metal="http://xml.zope.org/namespaces/metal" |
---|
4 | xmlns:i18n="http://xml.zope.org/namespaces/i18n" |
---|
5 | lang="en" |
---|
6 | metal:use-macro="context/prefs_main_template/macros/master"> |
---|
7 | |
---|
8 | <metal:main metal:fill-slot="prefs_configlet_main" i18n:domain="quintagroup.analytics" |
---|
9 | tal:define="infos view/getPortlets"> |
---|
10 | <body> |
---|
11 | <div id="wrapper"> |
---|
12 | <h1 i18n:translate="qa_main_title">Quintagroup Analytics Tool for Plone</h1> |
---|
13 | <ul class="formTabs" id="navigation" tal:define="template_id template/getId"> |
---|
14 | <span tal:repeat="formTabItem view/analiticsNavigation"> |
---|
15 | <li class="formTab"><a tal:attributes="class python:formTabItem['href'] in template_id and 'selected' or '';href python:formTabItem['href']" tal:content="python:formTabItem['content']">content</a></li> |
---|
16 | </span> |
---|
17 | </ul> |
---|
18 | <p i18n:translate="navigation_paragraph_portlets_desc">The following list can display site's legacy portlets, assigned as left and right slots on different |
---|
19 | site contexts. Specify the search depth: portlets on what level(s) to be included. Select CSV to render |
---|
20 | this information in .csv format.</p> |
---|
21 | <form action="" method="get"> |
---|
22 | <span i18n:translate="lg_form_helper">Search depth (-1 means no limit, 1 means that objects in the site root only will be searched):</span> |
---|
23 | <input type="text" name="level" size="5" value="1" tal:attributes="value request/level|python:1" /> |
---|
24 | CSV |
---|
25 | <input type="checkbox" name="csv" tal:attributes="checked request/csv|python:0" /> |
---|
26 | <input type="submit" name="submit" value="Search" /> |
---|
27 | </form> |
---|
28 | </div> |
---|
29 | <div tal:condition="request/csv|nothing"> |
---|
30 | <nobr>path,left_slots,right_slots</nobr><br> |
---|
31 | <nobr tal:repeat="info infos"> |
---|
32 | <span tal:content="info/path">path</span>, |
---|
33 | <span tal:condition="info/left_slots">" |
---|
34 | <span tal:repeat="slot info/left_slots"> |
---|
35 | <span tal:content="slot" />; |
---|
36 | </span>" |
---|
37 | </span> |
---|
38 | <span tal:condition="python:info['left_slots'] is None">None</span>, |
---|
39 | <span tal:condition="info/right_slots">" |
---|
40 | <span tal:repeat="slot info/right_slots"> |
---|
41 | <span tal:content="slot" />; |
---|
42 | </span>" |
---|
43 | </span> |
---|
44 | <span tal:condition="python:info['right_slots'] is None">None</span> |
---|
45 | <br> |
---|
46 | </nobr> |
---|
47 | </div> |
---|
48 | <table class="listing" |
---|
49 | tal:condition="not:request/csv|nothing"> |
---|
50 | <tr> |
---|
51 | <th></th> |
---|
52 | <th i18n:translate="table_header_left_slots">left_slots</th> |
---|
53 | <th i18n:translate="table_header_right_slots">right_slots</th> |
---|
54 | </tr> |
---|
55 | <tr tal:repeat="info infos"> |
---|
56 | <th><a href="#" tal:content="info/path" tal:attributes="href info/href">path</a></th> |
---|
57 | <td> |
---|
58 | <ul tal:condition="info/left_slots"> |
---|
59 | <li tal:repeat="slot info/left_slots" tal:content="slot">slot</li> |
---|
60 | </ul> |
---|
61 | <span tal:condition="python:info['left_slots'] is None" i18n:translate="span_doesnt_exist">doesn't exist</span> |
---|
62 | </td> |
---|
63 | <td> |
---|
64 | <ul tal:condition="info/right_slots"> |
---|
65 | <li tal:repeat="slot info/right_slots" tal:content="slot">slot</li> |
---|
66 | </ul> |
---|
67 | <span tal:condition="python:info['right_slots'] is None" i18n:translate="span_doesnt_exist">doesn't exist</span> |
---|
68 | </td> |
---|
69 | </tr> |
---|
70 | <tr> |
---|
71 | <th i18n:translate="table_header_total">Total</th> |
---|
72 | <td colspan="2" tal:content="view/getTotal">123</td> |
---|
73 | </tr> |
---|
74 | <tr> |
---|
75 | <th i18n:translate="table_header_expressions">Expressions</th> |
---|
76 | <td colspan="2"> |
---|
77 | <ul> |
---|
78 | <li tal:repeat="expr view/getAllPortletExpressions" tal:content="expr">expressions</li> |
---|
79 | </ul> |
---|
80 | </td> |
---|
81 | </tr> |
---|
82 | </table> |
---|
83 | </body> |
---|
84 | </metal:main> |
---|
85 | </html> |
---|