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

Last change on this file since 3407 was 3407, checked in by enkidu, 12 years ago

add French localization

  • Property svn:eol-style set to native
File size: 5.1 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 i18n:translate="qa_main_title">Quintagroup Analytics Tool for Plone</h1>
14            <ul class="formTabs" id="navigation"  tal:define="template_id template/getId">
15                <span tal:repeat="formTabItem view/analiticsNavigation">
16                    <li class="formTab"><a tal:attributes="class python:'selected' if formTabItem['href'] in template_id else '';href python:formTabItem['href']" tal:content="python:formTabItem['content']">content</a></li>
17                </span>
18            </ul>
19            <p i18n:translate="portlets_stats_desc">The following list can displays site's portlets, assigned to left and right columns on different
20               contexts. Specify the search depth: portlets on what level(s) to be included. Click on the porltet
21               title to land on the porltet edit form. Select CSV to render this information in .csv format.</p>
22            <form action="" method="get">
23                <span i18n:translate="portlets_stats_form_desc">Search depth (-1 means no limit, 1 means that objects in the site root only will be searched):</span>
24                <input type="text" name="level" size="5" value="1" tal:attributes="value request/level|python:1" />
25                CSV
26                <input type="checkbox" name="csv" size="40" tal:attributes="checked request/csv|python:0" />
27                <input type="submit" name="submit" value="Search" />
28            </form>
29        </div>
30        <div>
31             <span tal:repeat="prop view/proplist">
32                 <span tal:replace="prop"/>,
33             </span>
34             <hr>
35        </div>
36        <div tal:condition="request/csv|nothing">
37            <nobr>path,</nobr>
38            <nobr>left_slots,</nobr>
39            <nobr>right_slots,</nobr><br/>
40            <nobr tal:repeat="info infos">
41              <span tal:replace="info/path">path</span>,
42              <span tal:condition="info/left_slots">
43                <tal:left_slot repeat="item info/left_slots">
44                  <span tal:replace="item/title" />
45                </tal:left_slot>
46              </span>,
47              <span tal:condition="info/right_slots">
48                <tal:left_slot repeat="item info/right_slots">
49                  <span tal:replace="item/title" />
50                </tal:left_slot>
51              </span>,<br/>
52            </nobr>
53        </div>
54        <table class="listing" tal:condition="not:request/csv|nothing">
55            <tr>
56                <th></th>
57                <th i18n:translate="table_header_left_slots">left_slots</th>
58                <th i18n:translate="table_header_right_slots">right_slots</th>
59            </tr>
60            <tr tal:repeat="info view/getPropsList">
61                <th>
62                    <a href="#"
63                       tal:content="info/path"
64                       tal:attributes="href string:${info/href}/@@manage-portlets">path</a>
65                </th>
66                <td>
67                    <ul tal:condition="info/left_slots">
68                        <li tal:repeat="slot info/left_slots">
69                            <span tal:condition="python:slot['editview'] is ''"
70                                  tal:content="slot/title"></span>
71                            <a tal:condition="python:slot['editview'] is not ''"
72                               tal:content="slot/title"
73                               tal:attributes="href string:${slot/editview};
74                                               title slot/title">title</a>
75                        </li>
76                    </ul>
77                    <span tal:condition="python:info['left_slots'] is None" i18n:translate="span_doesnt_exist">doesn't exist</span>
78                </td>
79                <td>
80                    <ul tal:condition="info/right_slots">
81                        <li tal:repeat="slot info/right_slots">
82                            <span tal:condition="python:slot['editview'] is ''"
83                                  tal:content="slot/title"></span>
84                            <a tal:condition="python:slot['editview'] is not ''"
85                               tal:content="slot/title"
86                               tal:attributes="href string:${slot/editview};
87                                               title slot/title">title</a>
88                        </li>
89                    </ul>
90                    <span tal:condition="python:info['right_slots'] is None" i18n:translate="span_doesnt_exist">doesn't exist</span>
91                </td>
92            </tr>
93            <tr>
94                <th>Total</th>
95                <td colspan="2" tal:content="view/getTotal">123</td>
96            </tr>
97        </table>
98    </body>
99  </metal:main>
100</html>
Note: See TracBrowser for help on using the repository browser.