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 | <div id="navigation"> |
---|
15 | <a href="@@ownership_by_type">Ownership by type</a> | |
---|
16 | <a href="@@ownership_by_state">Ownership by state</a> | |
---|
17 | <a href="@@type_by_state">Types by state</a> | |
---|
18 | <a href="@@legacy_portlets">Legacy portlets</a> | |
---|
19 | <a href="@@properties_stats">Properties stats</a> | |
---|
20 | <a class="current" href="@@portlets_stats">Portlets stats</a> |
---|
21 | </div> |
---|
22 | <form action="" method="get"> |
---|
23 | Walk through site up to this level (type -1 for no limits): |
---|
24 | <input type="text" name="level" size="5" value="1" tal:attributes="value request/level|python:1" /> |
---|
25 | <input type="submit" name="submit" value="Submit" /> |
---|
26 | </form> |
---|
27 | </div> |
---|
28 | <div> |
---|
29 | <span tal:repeat="prop view/proplist"> |
---|
30 | <span tal:replace="prop"/>, |
---|
31 | </span> |
---|
32 | <hr> |
---|
33 | </div> |
---|
34 | <div tal:condition="request/csv|nothing"> |
---|
35 | <nobr>path,<span tal:replace="view/propname" /></nobr><br/> |
---|
36 | <nobr tal:repeat="info infos"> |
---|
37 | <span tal:replace="info/path">path</span>, |
---|
38 | <span tal:condition="info/slots">" |
---|
39 | <span tal:condition="python:not isinstance(info['slots'],basestring)" tal:repeat="slot info/slots"> |
---|
40 | <span tal:replace="slot" />; |
---|
41 | </span> |
---|
42 | <span tal:condition="python:isinstance(info['slots'],basestring)" tal:replace="info/slots">string</span>" |
---|
43 | </span> |
---|
44 | <span tal:condition="python:info['slots'] is None">None</span> |
---|
45 | <br/> |
---|
46 | </nobr> |
---|
47 | </div> |
---|
48 | <table class="listing" tal:condition="not:request/csv|nothing"> |
---|
49 | <tr> |
---|
50 | <th></th> |
---|
51 | <th>left_slots</th> |
---|
52 | <th>right_slots</th> |
---|
53 | </tr> |
---|
54 | <tr tal:repeat="info view/getPropsList"> |
---|
55 | <th> |
---|
56 | <a href="#" |
---|
57 | tal:content="info/path" |
---|
58 | tal:attributes="href string:${info/href}/@@manage-portlets">path</a> |
---|
59 | </th> |
---|
60 | <td> |
---|
61 | <ul tal:condition="info/left_slots"> |
---|
62 | <li tal:repeat="slot info/left_slots"> |
---|
63 | <span tal:condition="python:slot['editview'] is ''" |
---|
64 | tal:content="slot/title"></span> |
---|
65 | <a tal:condition="python:slot['editview'] is not ''" |
---|
66 | tal:content="slot/title" |
---|
67 | tal:attributes="href string:${slot/editview}; |
---|
68 | title slot/title">title</a> |
---|
69 | </li> |
---|
70 | </ul> |
---|
71 | <span tal:condition="python:info['left_slots'] is None">doesn't exist</span> |
---|
72 | </td> |
---|
73 | <td> |
---|
74 | <ul tal:condition="info/right_slots"> |
---|
75 | <li tal:repeat="slot info/right_slots"> |
---|
76 | <span tal:condition="python:slot['editview'] is ''" |
---|
77 | tal:content="slot/title"></span> |
---|
78 | <a tal:condition="python:slot['editview'] is not ''" |
---|
79 | tal:content="slot/title" |
---|
80 | tal:attributes="href string:${slot/editview}; |
---|
81 | title slot/title">title</a> |
---|
82 | </li> |
---|
83 | </ul> |
---|
84 | <span tal:condition="python:info['right_slots'] is None">doesn't exist</span> |
---|
85 | </td> |
---|
86 | </tr> |
---|
87 | <tr> |
---|
88 | <th>Total</th> |
---|
89 | <td colspan="2" tal:content="view/getTotal">123</td> |
---|
90 | </tr> |
---|
91 | </table> |
---|
92 | </body> |
---|
93 | </metal:main> |
---|
94 | </html> |
---|