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

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

Added new branch

File size: 4.7 KB
RevLine 
[3372]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 href="@@portlets_stats">Portlets stats</a></li>
20                <li class="formTab"><a href="@@legacy_portlets">Legacy portlets</a></li>
21                <li class="formTab"><a class="selected" href="@@properties_stats">Properties stats</a></li>
22            </ul>
23            <p>The following list can display values for certain property for site objects. To generate the
24               list - specify the search depth (objects on what level(s) will be included) and type in
25               property name (a list of all available properties is provided below). For example: to display
26               all site objects titles type '-1' into 'Search depth' field and 'title' into 'Property name' field.
27                Select CSV to render this information in .csv format.
28            </p>
29            <form action="" method="get">
30                Search depth (-1 means no limit, 1 means that objects in the site root only will be searched):
31                <input type="text" name="level" size="5" value="1" tal:attributes="value request/level|python:1" />
32                <br>
33                Property name
34                <input type="text" name="propname" size="10" tal:attributes="value request/propname|string:" />
35                CSV
36                <input type="checkbox" name="csv" size="40" tal:attributes="checked request/csv|python:0" />
37                <input type="submit" name="submit" value="Search" />
38            </form>
39        </div>
40        <div>
41             <span tal:repeat="prop view/proplist">
42                 <span tal:replace="prop"/>
43                 <span tal:condition="not:repeat/prop/end">,</span>
44             </span>
45             <hr>
46        </div>
47        <div tal:condition="request/csv|nothing">
48            <nobr>path,<span tal:replace="view/propname" /><br /></nobr>
49            <nobr tal:repeat="info infos">
50                <span tal:replace="info/path">
51                    path
52                </span>,<span
53                tal:condition="info/slots">"<span
54                tal:condition="python:not isinstance(info['slots'],basestring)"
55                tal:repeat="slot info/slots"><span
56                tal:replace="slot" />;</span><span
57                tal:condition="python:isinstance(info['slots'],basestring)"
58                tal:replace="info/slots">string</span>"</span><span
59                tal:condition="python:info['slots'] is None">None</span><br />
60            </nobr>
61        </div>
62        <table class="listing"
63               tal:condition="not:request/csv|nothing">
64            <tr>
65                <th></th>
66                <th tal:content="view/propname">Property</th>
67            </tr>
68            <tr tal:repeat="info view/getPropsList">
69                <th><a href="#" tal:content="info/path" tal:attributes="href info/href">path</a></th>
70                <td>
71                    <ul tal:condition="info/slots">
72                        <li tal:condition="python:not isinstance(info['slots'],basestring)" tal:repeat="slot info/slots" tal:content="slot">slot</li>
73                        <li tal:condition="python:isinstance(info['slots'],basestring)" tal:content="info/slots">string</li>
74                    </ul>
75                    <span class="none" tal:condition="python:info['slots'] is None">doesn't exist</span>
76                </td>
77            </tr>
78            <tr>
79                <th>Total</th>
80                <td tal:content="view/getTotal">123</td>
81            </tr>
82            <tr>
83                <th>Expressions</th>
84                <td>
85                    <ul>
86                        <li tal:repeat="expr view/getAllPortletExpressions" tal:content="expr">expressions</li>
87                    </ul>
88                </td>
89            </tr>
90        </table>
91    </body>
92  </metal:main>
93</html>
Note: See TracBrowser for help on using the repository browser.