~knitzsche/+junk/lp-l10n-stats

« back to all changes in this revision

Viewing changes to common/templates/html_report_template.py

  • Committer: David Planella
  • Date: 2010-09-26 10:31:51 UTC
  • Revision ID: david.planella@ubuntu.com-20100926103151-xiqut7f8kli1renz
Theme updated to Ubuntu light

Other changes:

* Added the translated percentage setting to define which languages we consider
  translated and want to show on the first pagination page on the report.
* Made symlinks in the reports folder relative.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
# You should have received a copy of the GNU General Public License along
21
21
# with this program.  If not, see <http://www.gnu.org/licenses/>.
22
22
 
23
 
page_template = """
 
23
ubuntu_template = """
24
24
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
25
25
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
26
26
 
27
27
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
28
28
  <head>
29
 
  <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
30
 
  <title>Ubuntu Languages</title>
31
 
    <link rel="stylesheet" href="css/ubuntu-book.css" type="text/css" />
 
29
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
 
30
    <title>Ubuntu %(distro_release)s Languages</title>
 
31
    <link rel="stylesheet" href="css/light.css" type="text/css" />
32
32
    <script src="http://www.google.com/jsapi" type="text/javascript"></script>
33
33
    <script type="text/javascript">
34
34
 
59
59
          //     alert('You selected ' + language_table_data.getValue(row, 0));
60
60
 
61
61
          google.visualization.events.addListener(language_table, 'select', selectHandler);
62
 
 
63
62
      }
64
63
 
65
64
    function selectHandler(e) {
67
66
        //alert('A table row was selected');
68
67
        alert('A table row was selected' + language_table_data.getValue(row, 0));
69
68
    }
70
 
 
71
69
    </script>
72
70
 
73
71
    <style type="text/css">
85
83
       table {margin-left:auto; margin-right:auto;}
86
84
    </style>
87
85
  </head>
 
86
 
88
87
  <body>
89
 
    <div id="report-meta">
90
 
      <p>Generated on %(gen_date)s</p>
91
 
    </div>
92
 
 
93
 
    <div id="round">
94
 
      <img id="topcap" alt="" src="img/cap-top.png" />
95
 
      <div id="layout" class="container clear-block">
96
 
 
 
88
    <div id="container">
 
89
      <div id="container-inner" class="container clear-block">
97
90
        <div id="header">
98
 
          <div id="logo-floater">
99
 
            <h1>
100
 
              <a href="https://wiki.ubuntu.com/Translations" title="Ubuntu Translations">
101
 
                <img alt="Ubuntu" id="logo" src="img/logo.png" />
102
 
              </a>
103
 
            </h1>
104
 
          </div>
 
91
          <ul id="navbar">
 
92
            <li><a href="https://wiki.ubuntu.com/Translations/">Home</a></li>
 
93
            <li><a href="https://wiki.ubuntu.com/Translations/QuickStartGuide">Quickstart</a></li>
 
94
            <li><a href="https://translations.launchpad.net/ubuntu">Translate</a></li>
 
95
            <li><a href="https://translations.launchpad.net/+groups/ubuntu-translators">Teams</a></li>
 
96
            <li><a href="./">Statistics</a></li>
 
97
            <li><a href="https://answers.launchpad.net/ubuntu-translations">Support</a></li>
 
98
          </ul>
105
99
 
 
100
          <h1 id="ubuntu-header">
 
101
            <a href="https://wiki.ubuntu.com/Translations" title="Ubuntu Translations"></a>
 
102
          </h1>
106
103
        </div>
107
104
 
108
105
        <div id="page">
109
106
          <div id="content">
110
107
            <div class="titlepage">
111
 
               <h2 class="title"><a id="id2820777"></a>Ubuntu %(distro_release)s (%(distro_codename)s) Languages</h2>
112
 
            </div>
113
 
 
114
 
      <ul id="total-languages">
115
 
<!--          <li><strong>Fully translated languages:</strong> %(translated_langs_str)s</li>-->
116
 
          <li><strong>Total number of languages:</strong> %(total_langs)s</li>
117
 
          <li><strong>Last update:</strong> %(gen_date)s</li>
118
 
      </ul>
119
 
 
120
 
      <div id="table_div_langpack"></div>
121
 
 
122
 
      <hr />
123
 
 
124
 
            <div id="footer">
125
 
              <div id="ubuntulinks">
126
 
    For information on contributing see the <a href="https://wiki.ubuntu.com/Translations">Ubuntu Translations wiki page</a>. To report a problem, visit the <a href="https://bugs.launchpad.net/ubuntu-translations">bug page for Ubuntu Translations</a></p>
127
 
              </div>
128
 
            </div>
129
 
      <div id="bottomcap">
130
 
              <img src="img/cap-bottom.png" alt="" />
 
108
               <h2 class="title"><a id="id2820777"></a>Ubuntu %(distro_release)s Translations</h2>
 
109
            </div>
 
110
 
 
111
            <p id="intro-message">
 
112
            <!--
 
113
            <ul>
 
114
              <li><strong>Fully translated languages:</strong> %(translated_langs_str)s</li>
 
115
              <li><strong>Total number of languages:</strong> %(total_langs)s</li>
 
116
            </ul>
 
117
            -->
 
118
            At the heart of Ubuntu's philosophy is the belief that computing is
 
119
            for everyone, whatever your language. Ubuntu %(distro_release)s is one of the
 
120
            most accessible operating systems and is fully translated into %(total_translated_langs)s
 
121
            languages, with many other nearly completed and more being added all the time.
 
122
          </p>
 
123
 
 
124
          <div id="table_div_langpack"></div>
 
125
 
 
126
          <div id="footer">
 
127
            <div id="ubuntulinks">
 
128
              <a href="https://wiki.ubuntu.com/Translations/Stats#UbuntuTranslationStatistics">More information on these statistics</a>
 
129
                &nbsp;&bull;&nbsp;
 
130
                Found a bug? <a href="https://bugs.launchpad.net/ubuntu-translations">Report it</a>
 
131
                &nbsp;&bull;&nbsp;
 
132
                Last update on %(gen_date)s
131
133
            </div>
132
134
          </div>
133
135
        </div>
134
136
      </div>
135
137
    </div>
136
 
 
137
138
  </body>
 
139
 
138
140
</html>
139
141
"""