source: products/quintagroup.contentstats/trunk/quintagroup/contentstats/portlets_stats.pt @ 2870

Last change on this file since 2870 was 2870, checked in by fenix, 14 years ago

initial import.

File size: 4.4 KB
Line 
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 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 style="margin: 0 auto;" 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</html>
Note: See TracBrowser for help on using the repository browser.