1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" |
---|
2 | "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
---|
3 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" |
---|
4 | xmlns:tal="http://xml.zope.org/namespaces/tal" |
---|
5 | tal:define="infos view/getPropsList"> |
---|
6 | <head> |
---|
7 | <title>Properties stats</title> |
---|
8 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
---|
9 | <link rel="stylesheet" type="text/css" href="++resource++stats_style.css" /> |
---|
10 | </head> |
---|
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 class="current" href="@@properties_stats">Properties stats</a> | |
---|
20 | <a 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 | <br> |
---|
26 | Property name |
---|
27 | <input type="text" name="propname" size="10" tal:attributes="value request/propname|string:" /> |
---|
28 | CSV |
---|
29 | <input type="checkbox" name="csv" size="40" tal:attributes="checked request/csv|python:0" /> |
---|
30 | <input type="submit" name="submit" value="Submit" /> |
---|
31 | </form> |
---|
32 | </div> |
---|
33 | <div> |
---|
34 | <span tal:repeat="prop view/proplist"> |
---|
35 | <span tal:replace="prop"/>, |
---|
36 | </span> |
---|
37 | <hr> |
---|
38 | </div> |
---|
39 | <div tal:condition="request/csv|nothing"> |
---|
40 | <nobr>path,<span tal:replace="view/propname" /><br /></nobr> |
---|
41 | <nobr tal:repeat="info infos"> |
---|
42 | <span tal:replace="info/path"> |
---|
43 | path |
---|
44 | </span>,<span |
---|
45 | tal:condition="info/slots">"<span |
---|
46 | tal:condition="python:not isinstance(info['slots'],basestring)" |
---|
47 | tal:repeat="slot info/slots"><span |
---|
48 | tal:replace="slot" />;</span><span |
---|
49 | tal:condition="python:isinstance(info['slots'],basestring)" |
---|
50 | tal:replace="info/slots">string</span>"</span><span |
---|
51 | tal:condition="python:info['slots'] is None">None</span><br /> |
---|
52 | </nobr> |
---|
53 | </div> |
---|
54 | <table style="margin: 0 auto;" tal:condition="not:request/csv|nothing"> |
---|
55 | <tr> |
---|
56 | <th></th> |
---|
57 | <th tal:content="view/propname">Property</th> |
---|
58 | </tr> |
---|
59 | <tr tal:repeat="info view/getPropsList"> |
---|
60 | <th><a href="#" tal:content="info/path" tal:attributes="href info/href">path</a></th> |
---|
61 | <td> |
---|
62 | <ul tal:condition="info/slots"> |
---|
63 | <li tal:condition="python:not isinstance(info['slots'],basestring)" tal:repeat="slot info/slots" tal:content="slot">slot</li> |
---|
64 | <li tal:condition="python:isinstance(info['slots'],basestring)" tal:content="info/slots">string</li> |
---|
65 | </ul> |
---|
66 | <span class="none" tal:condition="python:info['slots'] is None">doesn't exist</span> |
---|
67 | </td> |
---|
68 | </tr> |
---|
69 | <tr> |
---|
70 | <th>Total</th> |
---|
71 | <td tal:content="view/getTotal">123</td> |
---|
72 | </tr> |
---|
73 | <tr> |
---|
74 | <th>Expressions</th> |
---|
75 | <td> |
---|
76 | <ul> |
---|
77 | <li tal:repeat="expr view/getAllPortletExpressions" tal:content="expr">expressions</li> |
---|
78 | </ul> |
---|
79 | </td> |
---|
80 | </tr> |
---|
81 | </table> |
---|
82 | </body> |
---|
83 | </html> |
---|