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

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

initial import.

File size: 3.8 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/getPortlets">
6    <head>
7        <title>Legacy portlets</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>Legacy portlets</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 class="current" href="@@legacy_portlets">Legacy portlets</a> |
19                <a 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                CSV
27                <input type="checkbox" name="csv" tal:attributes="checked request/csv|python:0" />
28                <input type="submit" name="submit" value="Submit" />
29            </form>
30        </div>
31        <div tal:condition="request/csv|nothing">
32            <nobr>path,left_slots,right_slots</nobr><br>
33            <nobr tal:repeat="info infos">
34                <span tal:content="info/path">path</span>,
35                <span tal:condition="info/left_slots">"
36                    <span tal:repeat="slot info/left_slots">
37                        <span tal:content="slot" />;
38                    </span>"
39                </span>
40                <span tal:condition="python:info['left_slots'] is None">None</span>,
41                <span tal:condition="info/right_slots">"
42                    <span tal:repeat="slot info/right_slots">
43                        <span tal:content="slot" />;
44                    </span>"
45                </span>
46                <span tal:condition="python:info['right_slots'] is None">None</span>
47                <br>
48            </nobr>
49        </div>
50        <table style="margin: 0 auto;" tal:condition="not:request/csv|nothing">
51            <tr>
52                <th></th>
53                <th>left_slots</th>
54                <th>right_slots</th>
55            </tr>
56            <tr tal:repeat="info infos">
57                <th><a href="#" tal:content="info/path" tal:attributes="href info/href">path</a></th>
58                <td>
59                    <ul tal:condition="info/left_slots">
60                        <li tal:repeat="slot info/left_slots" tal:content="slot">slot</li>
61                    </ul>
62                    <span tal:condition="python:info['left_slots'] is None">doesn't exist</span>
63                </td>
64                <td>
65                    <ul tal:condition="info/right_slots">
66                        <li tal:repeat="slot info/right_slots" tal:content="slot">slot</li>
67                    </ul>
68                    <span tal:condition="python:info['right_slots'] is None">doesn't exist</span>
69                </td>
70            </tr>
71            <tr>
72                <th>Total</th>
73                <td colspan="2" tal:content="view/getTotal">123</td>
74            </tr>
75            <tr>
76                <th>Expressions</th>
77                <td colspan="2">
78                    <ul>
79                        <li tal:repeat="expr view/getAllPortletExpressions" tal:content="expr">expressions</li>
80                    </ul>
81                </td>
82            </tr>
83        </table>
84    </body>
85</html>
Note: See TracBrowser for help on using the repository browser.