source: products/quintagroup.analytics/trunk/quintagroup/analytics/browser/portlets_stats.pt @ 3030

Last change on this file since 3030 was 3030, checked in by olha, 13 years ago

overview text to all configlet tabs added

  • Property svn:eol-style set to native
File size: 4.8 KB
Line 
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            <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="@@legacy_portlets">Legacy portlets</a></li>
20                <li class="formTab"><a href="@@properties_stats">Properties stats</a></li>
21                <li class="formTab"><a class="selected" href="@@portlets_stats">Portlets stats</a></li>
22            </ul>
23            <p>The following list displays all site's portlets, assigned to left and right columns in all site sections.
24               Click on the porltet title to land on the porltet edit form.</p>
25            <form action="" method="get">
26                Search depth (-1 means no limit, 1 means that objects in the site root only will be searched):
27                <input type="text" name="level" size="5" value="1" tal:attributes="value request/level|python:1" />
28                <input type="submit" name="submit" value="Submit" />
29            </form>
30        </div>
31        <div>
32             <span tal:repeat="prop view/proplist">
33                 <span tal:replace="prop"/>,
34             </span>
35             <hr>
36        </div>
37        <div tal:condition="request/csv|nothing">
38            <nobr>path,<span tal:replace="view/propname" /></nobr><br/>
39            <nobr tal:repeat="info infos">
40                <span tal:replace="info/path">path</span>,
41                <span tal:condition="info/slots">"
42                    <span tal:condition="python:not isinstance(info['slots'],basestring)" tal:repeat="slot info/slots">
43                        <span tal:replace="slot" />;
44                    </span>
45                    <span tal:condition="python:isinstance(info['slots'],basestring)" tal:replace="info/slots">string</span>"
46                </span>
47                <span tal:condition="python:info['slots'] is None">None</span>
48                <br/>
49            </nobr>
50        </div>
51        <table class="listing" tal:condition="not:request/csv|nothing">
52            <tr>
53                <th></th>
54                <th>left_slots</th>
55                <th>right_slots</th>
56            </tr>
57            <tr tal:repeat="info view/getPropsList">
58                <th>
59                    <a href="#"
60                       tal:content="info/path"
61                       tal:attributes="href string:${info/href}/@@manage-portlets">path</a>
62                </th>
63                <td>
64                    <ul tal:condition="info/left_slots">
65                        <li tal:repeat="slot info/left_slots">
66                            <span tal:condition="python:slot['editview'] is ''"
67                                  tal:content="slot/title"></span>
68                            <a tal:condition="python:slot['editview'] is not ''"
69                               tal:content="slot/title"
70                               tal:attributes="href string:${slot/editview};
71                                               title slot/title">title</a>
72                        </li>
73                    </ul>
74                    <span tal:condition="python:info['left_slots'] is None">doesn't exist</span>
75                </td>
76                <td>
77                    <ul tal:condition="info/right_slots">
78                        <li tal:repeat="slot info/right_slots">
79                            <span tal:condition="python:slot['editview'] is ''"
80                                  tal:content="slot/title"></span>
81                            <a tal:condition="python:slot['editview'] is not ''"
82                               tal:content="slot/title"
83                               tal:attributes="href string:${slot/editview};
84                                               title slot/title">title</a>
85                        </li>
86                    </ul>
87                    <span tal:condition="python:info['right_slots'] is None">doesn't exist</span>
88                </td>
89            </tr>
90            <tr>
91                <th>Total</th>
92                <td colspan="2" tal:content="view/getTotal">123</td>
93            </tr>
94        </table>
95    </body>
96  </metal:main>
97</html>
Note: See TracBrowser for help on using the repository browser.