zach%zachlipton.com 1be649b1ca Ensure that email addresses display correctly. The html filter must be applied before the email filter, not after.
git-svn-id: svn://10.0.0.236/trunk@184731 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-15 23:46:48 +00:00

108 lines
2.6 KiB
Cheetah
Executable File

[%# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is Litmus.
#
# The Initial Developer of the Original Code is Netscape Communications
# Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s): Zach Lipton <zach@zachlipton.com>
#%]
[%# INTERFACE:
# $numtests - the number of tests in the database
# $numusers - the number of users in the database
# $numresults - the number of results in the database
# @toptesters - an array of the top testers in the system, where each
# element contains a hash with keys "email" and "numtests"
#%]
[% INCLUDE global/html_header.tmpl %]
[% INCLUDE global/litmus_header.tmpl %]
<div id="page">
[% INCLUDE sidebar/sidebar.tmpl %]
<div id="content">
<h1 class="firstHeading">[% title | html %]</h1>
<div class="section-full">
<div class="section-header">
General Statistics
</div>
<div class="section-content">
<ul>
<li>Testcases - [% numtests FILTER html %] testcases</li>
<li>Users - [% numusers FILTER html %] users</li>
<li>Results - [% numresults FILTER html %] results</li>
</ul>
</td>
</tr>
</div>
</div> <!--END section-full-->
<br/>
<div class="section-full">
<div class="section-header">
Top Testers
</div>
<div class="section-content">
<table class="stats"
<tr>
<td class="header">Rank</td>
<td class="header">Tester</td>
<td class="header"># Tests Run</td>
</tr>
[% IF toptesters %]
[% FOREACH curtester = toptesters %]
<tr [% IF not (loop.count % 2) %]class="even"[% ELSE %]class="odd"[% END %]>
<td align="center">[% loop.count %]</td>
<td align="center">
[% IF curtester.email %]
<a href="mailto:[% curtester.email FILTER html | uri | email %]">
[% curtester.email FILTER html | email %]</a>
[% ELSE %]Anonymous[% END %]</td>
<td align="center">[% curtester.numtests | html %]</td>
</tr>
[% END %]
[% ELSE %]
<tr class="odd">
<td class="no-results" colspan="3">No test results have been submitted.</td>
</tr>
[% END %]
</table>
</div>
</div> <!--END section-full-->
</div> <!--END content-->
</div> <!--END page-->
[% INCLUDE global/litmus_footer.tmpl %]
[% INCLUDE global/html_footer.tmpl %]