source: products/quintagroup.analytics/branches/treemap/quintagroup/analytics/browser/legacy_portlets.pt @ 3372

Last change on this file since 3372 was 3372, checked in by potar, 8 years ago

Added new branch

File size: 4.3 KB
Line 
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>Quintagroup Analytics Tool for Plone</h1>
13            <ul class="formTabs" id="navigation">
14                <li class="formTab"><a href="@@qa_overview">Overview</a></li>
15                <li class="formTab"><a href="@@ownership_by_type">Ownership by type</a></li>
16                <li class="formTab"><a href="@@ownership_by_state">Ownership by state</a></li>
17                <li class="formTab"><a href="@@type_by_state">Types by state</a></li>
18                <li class="formTab"><a href="@@portlets_stats">Portlets stats</a></li>
19                <li class="formTab"><a class="selected" href="@@legacy_portlets">Legacy portlets</a></li>
20                <li class="formTab"><a href="@@properties_stats">Properties stats</a></li>
21            </ul>
22            <p>The following list can display site's legacy portlets, assigned as left and right slots on different
23               site contexts. Specify the search depth: portlets on what level(s) to be included. Select CSV to render
24               this information in .csv format.</p>
25            <form action="" method="get">
26                Search depth (-1 means no limit, 1 means that objects in the site root only will be searched):
27                <input type="text" name="level" size="5" value="1" tal:attributes="value request/level|python:1" />
28                CSV
29                <input type="checkbox" name="csv" tal:attributes="checked request/csv|python:0" />
30                <input type="submit" name="submit" value="Search" />
31            </form>
32        </div>
33        <div tal:condition="request/csv|nothing">
34            <nobr>path,left_slots,right_slots</nobr><br>
35            <nobr tal:repeat="info infos">
36                <span tal:content="info/path">path</span>,
37                <span tal:condition="info/left_slots">"
38                    <span tal:repeat="slot info/left_slots">
39                        <span tal:content="slot" />;
40                    </span>"
41                </span>
42                <span tal:condition="python:info['left_slots'] is None">None</span>,
43                <span tal:condition="info/right_slots">"
44                    <span tal:repeat="slot info/right_slots">
45                        <span tal:content="slot" />;
46                    </span>"
47                </span>
48                <span tal:condition="python:info['right_slots'] is None">None</span>
49                <br>
50            </nobr>
51        </div>
52        <table class="listing"
53               tal:condition="not:request/csv|nothing">
54            <tr>
55                <th></th>
56                <th>left_slots</th>
57                <th>right_slots</th>
58            </tr>
59            <tr tal:repeat="info infos">
60                <th><a href="#" tal:content="info/path" tal:attributes="href info/href">path</a></th>
61                <td>
62                    <ul tal:condition="info/left_slots">
63                        <li tal:repeat="slot info/left_slots" tal:content="slot">slot</li>
64                    </ul>
65                    <span tal:condition="python:info['left_slots'] is None">doesn't exist</span>
66                </td>
67                <td>
68                    <ul tal:condition="info/right_slots">
69                        <li tal:repeat="slot info/right_slots" tal:content="slot">slot</li>
70                    </ul>
71                    <span tal:condition="python:info['right_slots'] is None">doesn't exist</span>
72                </td>
73            </tr>
74            <tr>
75                <th>Total</th>
76                <td colspan="2" tal:content="view/getTotal">123</td>
77            </tr>
78            <tr>
79                <th>Expressions</th>
80                <td colspan="2">
81                    <ul>
82                        <li tal:repeat="expr view/getAllPortletExpressions" tal:content="expr">expressions</li>
83                    </ul>
84                </td>
85            </tr>
86        </table>
87    </body>
88  </metal:main>
89</html>
Note: See TracBrowser for help on using the repository browser.