Add result count to the statistics page.
git-svn-id: svn://10.0.0.236/trunk@178669 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -39,6 +39,9 @@ my $numtests = Litmus::DB::Test->count_all();
|
||||
# find the number of users in the database
|
||||
my $numusers = Litmus::DB::User->count_all();
|
||||
|
||||
# find the number of results in the database:
|
||||
my $numresults = Litmus::DB::Testresult->count_all();
|
||||
|
||||
# get a list of the top 15 testers of all time, sorted by the number
|
||||
# of test results submitted:
|
||||
my $dbh = Litmus::DB::User->db_Main();
|
||||
@@ -63,6 +66,7 @@ while (@curtester = $sth->fetchrow_array()) {
|
||||
my $vars = {
|
||||
numtests => $numtests,
|
||||
numusers => $numusers,
|
||||
numresults => $numresults,
|
||||
toptesters => \@toptesters,
|
||||
};
|
||||
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
[%# 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"
|
||||
#%]
|
||||
@@ -34,6 +35,7 @@
|
||||
<ul>
|
||||
<li>Testcases - [% numtests FILTER html %] testcases</li>
|
||||
<li>Users - [% numusers FILTER html %] users</li>
|
||||
<li>Results - [% numresults FILTER html %] results</li>
|
||||
</ul>
|
||||
|
||||
<p class="pageinstruction">Tester Statistics</p>
|
||||
|
||||
Reference in New Issue
Block a user