source: products/quintagroup.analytics/trunk/quintagroup/analytics/browser/properties_stats.pt @ 3030

Last change on this file since 3030 was 3030, checked in by olha, 13 years ago

overview text to all configlet tabs added

  • Property svn:eol-style set to native
File size: 4.1 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"
9            i18n:domain="quintagroup.analytics"
10            tal:define="infos view/getPropsList">
11    <body>
12        <div id="wrapper">
13            <h1>Properties stats</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="@@legacy_portlets">Legacy portlets</a></li>
20                <li class="formTab"><a class="selected" href="@@properties_stats">Properties stats</a></li>
21                <li class="formTab"><a href="@@portlets_stats">Portlets stats</a></li>
22            </ul>
23            <p>List of values for certain property for site objects.</p>
24            <form action="" method="get">
25                Search depth (-1 means no limit, 1 means that objects in the site root only will be searched):
26                <input type="text" name="level" size="5" value="1" tal:attributes="value request/level|python:1" />
27                <br>
28                Property name
29                <input type="text" name="propname" size="10" tal:attributes="value request/propname|string:" />
30                CSV
31                <input type="checkbox" name="csv" size="40" tal:attributes="checked request/csv|python:0" />
32                <input type="submit" name="submit" value="Submit" />
33            </form>
34        </div>
35        <div>
36             <span tal:repeat="prop view/proplist">
37                 <span tal:replace="prop"/>,
38             </span>
39             <hr>
40        </div>
41        <div tal:condition="request/csv|nothing">
42            <nobr>path,<span tal:replace="view/propname" /><br /></nobr>
43            <nobr tal:repeat="info infos">
44                <span tal:replace="info/path">
45                    path
46                </span>,<span
47                tal:condition="info/slots">"<span
48                tal:condition="python:not isinstance(info['slots'],basestring)"
49                tal:repeat="slot info/slots"><span
50                tal:replace="slot" />;</span><span
51                tal:condition="python:isinstance(info['slots'],basestring)"
52                tal:replace="info/slots">string</span>"</span><span
53                tal:condition="python:info['slots'] is None">None</span><br />
54            </nobr>
55        </div>
56        <table class="listing"
57               tal:condition="not:request/csv|nothing">
58            <tr>
59                <th></th>
60                <th tal:content="view/propname">Property</th>
61            </tr>
62            <tr tal:repeat="info view/getPropsList">
63                <th><a href="#" tal:content="info/path" tal:attributes="href info/href">path</a></th>
64                <td>
65                    <ul tal:condition="info/slots">
66                        <li tal:condition="python:not isinstance(info['slots'],basestring)" tal:repeat="slot info/slots" tal:content="slot">slot</li>
67                        <li tal:condition="python:isinstance(info['slots'],basestring)" tal:content="info/slots">string</li>
68                    </ul>
69                    <span class="none" tal:condition="python:info['slots'] is None">doesn't exist</span>
70                </td>
71            </tr>
72            <tr>
73                <th>Total</th>
74                <td tal:content="view/getTotal">123</td>
75            </tr>
76            <tr>
77                <th>Expressions</th>
78                <td>
79                    <ul>
80                        <li tal:repeat="expr view/getAllPortletExpressions" tal:content="expr">expressions</li>
81                    </ul>
82                </td>
83            </tr>
84        </table>
85    </body>
86  </metal:main>
87</html>
Note: See TracBrowser for help on using the repository browser.