source: products/quintagroup.analytics/branches/treemap/quintagroup/analytics/browser/objects_size_stat.pt @ 3372

Last change on this file since 3372 was 3372, checked in by potar, 8 years ago

Added new branch

File size: 2.7 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="type_name request/type_name;
11                        data python:view.get_data(type_name)">
12
13   <body>
14       <div id="wrapper">
15           <h1>Quintagroup Analytics Tool for Plone</h1>
16           <ul class="formTabs" id="navigation">
17               <li class="formTab"><a href="@@qa_overview">Overview</a></li>
18               <li class="formTab"><a href="@@ownership_by_type">Ownership by type</a></li>
19               <li class="formTab"><a href="@@ownership_by_state">Ownership by state</a></li>
20               <li class="formTab"><a href="@@type_by_state">Types by state</a></li>
21               <li class="formTab"><a href="@@portlets_stats">Portlets stats</a></li>
22               <li class="formTab"><a href="@@legacy_portlets">Legacy portlets</a></li>
23               <li class="formTab"><a href="@@properties_stats">Properties stats</a></li>
24               <li class="formTab"><a class="selected" href="@@size_stats_path">Objects by size</a></li>
25           </ul>
26           <p>The following chart displays the objects size by choosen type.
27            <form  action="@@size_stats_path"
28                   method="post">
29                     Objects type (you can type 'all' to see all types):
30                     <br />
31                    <input type="input" id="type_name" name="type_name"
32                           tal:attributes="value type_name"  />
33                    <input type="submit"
34                           class="standalone"
35                           value="View stats">
36            </form>
37            </p>
38       </div>
39       <div id="chart" tal:content="structure view/getChart">
40           Chart will be here
41       </div>
42
43       <table tal:condition="data" class="listing">
44          <thead>
45               <tr>
46                  <th>ID</th>
47                  <th>Size</th>
48               </tr>
49           </thead>
50           <tbody>
51              <tal:block  tal:repeat="file data">
52                    <tr tal:attributes="class python:repeat['file'].odd() and 'even' or 'odd'">
53                        <td><a tal:content="file/id" tal:attributes="href file/path">id</a></td>
54                        <td tal:content="file/h_size">123</td>                       
55                    </tr>
56              </tal:block>
57           </tbody>
58       </table>
59   </body>
60</metal:main>
61</html>
Note: See TracBrowser for help on using the repository browser.