зеркало из https://github.com/mozilla/gecko-dev.git
- remove page load time calc from common failures page;
- check privileges before allowing user to edit test cases;
This commit is contained in:
Родитель
b147edcaed
Коммит
05ddd2d470
|
@ -30,9 +30,6 @@
|
||||||
use strict;
|
use strict;
|
||||||
$|++;
|
$|++;
|
||||||
|
|
||||||
use Time::HiRes qw( gettimeofday tv_interval );
|
|
||||||
my $t0 = [gettimeofday];
|
|
||||||
|
|
||||||
use Litmus;
|
use Litmus;
|
||||||
use Litmus::Auth;
|
use Litmus::Auth;
|
||||||
use Litmus::Error;
|
use Litmus::Error;
|
||||||
|
@ -62,9 +59,6 @@ $vars->{"defaultemail"} = Litmus::Auth::getCookie();
|
||||||
Litmus->template()->process("reporting/common_failures.tmpl", $vars) ||
|
Litmus->template()->process("reporting/common_failures.tmpl", $vars) ||
|
||||||
internalError(Litmus->template()->error());
|
internalError(Litmus->template()->error());
|
||||||
|
|
||||||
my $elapsed = tv_interval ( $t0 );
|
|
||||||
printf "<p>Page took %f seconds to load.</p>", $elapsed;
|
|
||||||
|
|
||||||
exit 0;
|
exit 0;
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -58,7 +58,7 @@ Current Status
|
||||||
<input name="return" type="hidden" value="show_test.cgi?id=[% test.testid FILTER html %]">
|
<input name="return" type="hidden" value="show_test.cgi?id=[% test.testid FILTER html %]">
|
||||||
|
|
||||||
<table border="0">
|
<table border="0">
|
||||||
[% INCLUDE test/test.html.tmpl test=test results=results showedit=1 %]
|
[% INCLUDE test/test.html.tmpl test=test results=results showedit=show_admin %]
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td><br /><input type="submit" id="Submit" name="Submit" value="Submit Results" onclick="findEdited()"></td>
|
<td><br /><input type="submit" id="Submit" name="Submit" value="Submit Results" onclick="findEdited()"></td>
|
||||||
|
|
Загрузка…
Ссылка в новой задаче