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/getSizeStats"> |
---|
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 | <li class="formTab"><a class="selected" href="@@size_stats">Size stats</a></li> |
---|
23 | </ul> |
---|
24 | <p>The following list can display summary sizes of objects, occupied by subfolders and objects in the certain base path. To generate the |
---|
25 | base path - path, which you want to view statystics for |
---|
26 | Select CSV to render this information in .csv format. |
---|
27 | </p> |
---|
28 | <form action="" method="get"> |
---|
29 | Base path (/ means no root of the plone site): |
---|
30 | <input type="text" name="basepath" size="40" tal:attributes="value request/basepath|string:" /> |
---|
31 | CSV |
---|
32 | <input type="checkbox" name="csv" size="40" tal:attributes="checked request/csv|python:0" /> |
---|
33 | <input type="submit" name="submit" value="Search" /> |
---|
34 | </form> |
---|
35 | </div> |
---|
36 | <div tal:condition="request/csv|nothing"> |
---|
37 | <nobr>path,<span tal:replace="view/basepath" /><br /></nobr> |
---|
38 | <nobr tal:repeat="info infos"> |
---|
39 | <span tal:replace="info/path"> |
---|
40 | path |
---|
41 | </span>,<span |
---|
42 | tal:condition="info/slots">"<span |
---|
43 | tal:condition="python:not isinstance(info['slots'],basestring)" |
---|
44 | tal:repeat="slot info/slots"><span |
---|
45 | tal:replace="slot" />;</span><span |
---|
46 | tal:condition="python:isinstance(info['slots'],basestring)" |
---|
47 | tal:replace="info/slots">string</span>"</span><span |
---|
48 | tal:condition="python:info['slots'] is None">None</span><br /> |
---|
49 | </nobr> |
---|
50 | </div> |
---|
51 | <table class="listing" |
---|
52 | tal:condition="not:request/csv|nothing"> |
---|
53 | <tr> |
---|
54 | <th>Object</th> |
---|
55 | <th>Size, Analyse Content</th> |
---|
56 | </tr> |
---|
57 | <tr tal:repeat="info view/getSizeStats"> |
---|
58 | <td><a href="#" |
---|
59 | tal:content="info/path" |
---|
60 | tal:attributes="href info/href">path</a></td> |
---|
61 | <td><a href="#" |
---|
62 | tal:attributes="href info/analyse_url" |
---|
63 | tal:omit-tag="not:info/analyse_url" |
---|
64 | tal:content="info/human_size">slot</a></td> |
---|
65 | </tr> |
---|
66 | <tr> |
---|
67 | <th>Total</th> |
---|
68 | <td tal:content="view/total">123</td> |
---|
69 | </tr> |
---|
70 | </table> |
---|
71 | </body> |
---|
72 | </metal:main> |
---|
73 | </html> |
---|