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" |
---|
9 | i18n:domain="quintagroup.analytics" |
---|
10 | tal:define="infos view/getPropsList"> |
---|
11 | <body> |
---|
12 | <div id="wrapper"> |
---|
13 | <h1>Quintagroup Analytics Tool for Plone</h1> |
---|
14 | <ul class="formTabs" id="navigation"> |
---|
15 | <li class="formTab"><a href="@@qa_overview">Overview</a></li> |
---|
16 | <li class="formTab"><a href="@@ownership_by_type">Ownership by type</a></li> |
---|
17 | <li class="formTab"><a href="@@ownership_by_state">Ownership by state</a></li> |
---|
18 | <li class="formTab"><a href="@@type_by_state">Types by state</a></li> |
---|
19 | <li class="formTab"><a class="selected" href="@@portlets_stats">Portlets stats</a></li> |
---|
20 | <li class="formTab"><a href="@@legacy_portlets">Legacy portlets</a></li> |
---|
21 | <li class="formTab"><a href="@@properties_stats">Properties stats</a></li> |
---|
22 | </ul> |
---|
23 | <p>The following list can displays site's portlets, assigned to left and right columns on different |
---|
24 | contexts. Specify the search depth: portlets on what level(s) to be included. Click on the porltet |
---|
25 | title to land on the porltet edit form. Select CSV to render this information in .csv format.</p> |
---|
26 | <form action="" method="get"> |
---|
27 | Search depth (-1 means no limit, 1 means that objects in the site root only will be searched): |
---|
28 | <input type="text" name="level" size="5" value="1" tal:attributes="value request/level|python:1" /> |
---|
29 | CSV |
---|
30 | <input type="checkbox" name="csv" size="40" tal:attributes="checked request/csv|python:0" /> |
---|
31 | <input type="submit" name="submit" value="Search" /> |
---|
32 | </form> |
---|
33 | </div> |
---|
34 | <div> |
---|
35 | <span tal:repeat="prop view/proplist"> |
---|
36 | <span tal:replace="prop"/>, |
---|
37 | </span> |
---|
38 | <hr> |
---|
39 | </div> |
---|
40 | <div tal:condition="request/csv|nothing"> |
---|
41 | <nobr>path,</nobr> |
---|
42 | <nobr>left_slots,</nobr> |
---|
43 | <nobr>right_slots,</nobr><br/> |
---|
44 | <nobr tal:repeat="info infos"> |
---|
45 | <span tal:replace="info/path">path</span>, |
---|
46 | <span tal:condition="info/left_slots"> |
---|
47 | <tal:left_slot repeat="item info/left_slots"> |
---|
48 | <span tal:replace="item/title" /> |
---|
49 | </tal:left_slot> |
---|
50 | </span>, |
---|
51 | <span tal:condition="info/right_slots"> |
---|
52 | <tal:left_slot repeat="item info/right_slots"> |
---|
53 | <span tal:replace="item/title" /> |
---|
54 | </tal:left_slot> |
---|
55 | </span>,<br/> |
---|
56 | </nobr> |
---|
57 | </div> |
---|
58 | <table class="listing" tal:condition="not:request/csv|nothing"> |
---|
59 | <tr> |
---|
60 | <th></th> |
---|
61 | <th>left_slots</th> |
---|
62 | <th>right_slots</th> |
---|
63 | </tr> |
---|
64 | <tr tal:repeat="info view/getPropsList"> |
---|
65 | <th> |
---|
66 | <a href="#" |
---|
67 | tal:content="info/path" |
---|
68 | tal:attributes="href string:${info/href}/@@manage-portlets">path</a> |
---|
69 | </th> |
---|
70 | <td> |
---|
71 | <ul tal:condition="info/left_slots"> |
---|
72 | <li tal:repeat="slot info/left_slots"> |
---|
73 | <span tal:condition="python:slot['editview'] is ''" |
---|
74 | tal:content="slot/title"></span> |
---|
75 | <a tal:condition="python:slot['editview'] is not ''" |
---|
76 | tal:content="slot/title" |
---|
77 | tal:attributes="href string:${slot/editview}; |
---|
78 | title slot/title">title</a> |
---|
79 | </li> |
---|
80 | </ul> |
---|
81 | <span tal:condition="python:info['left_slots'] is None">doesn't exist</span> |
---|
82 | </td> |
---|
83 | <td> |
---|
84 | <ul tal:condition="info/right_slots"> |
---|
85 | <li tal:repeat="slot info/right_slots"> |
---|
86 | <span tal:condition="python:slot['editview'] is ''" |
---|
87 | tal:content="slot/title"></span> |
---|
88 | <a tal:condition="python:slot['editview'] is not ''" |
---|
89 | tal:content="slot/title" |
---|
90 | tal:attributes="href string:${slot/editview}; |
---|
91 | title slot/title">title</a> |
---|
92 | </li> |
---|
93 | </ul> |
---|
94 | <span tal:condition="python:info['right_slots'] is None">doesn't exist</span> |
---|
95 | </td> |
---|
96 | </tr> |
---|
97 | <tr> |
---|
98 | <th>Total</th> |
---|
99 | <td colspan="2" tal:content="view/getTotal">123</td> |
---|
100 | </tr> |
---|
101 | </table> |
---|
102 | </body> |
---|
103 | </metal:main> |
---|
104 | </html> |
---|