[Rt-commit] rt branch, query-logging, updated. rt-3.8.8-948-g9bb6d36
Shawn Moore
sartak at bestpractical.com
Tue Sep 28 21:09:01 EDT 2010
The branch, query-logging has been updated
via 9bb6d36805b931d8bab84c2245c996af23dfa24c (commit)
from b0c4ded32bf8c4eef734dbae83f441306fae6dd8 (commit)
Summary of changes:
share/html/Admin/Tools/Queries.html | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
- Log -----------------------------------------------------------------
commit 9bb6d36805b931d8bab84c2245c996af23dfa24c
Author: Shawn M Moore <sartak at bestpractical.com>
Date: Tue Sep 28 21:12:09 2010 -0400
Display number of queries in the hide/show link
diff --git a/share/html/Admin/Tools/Queries.html b/share/html/Admin/Tools/Queries.html
index bc3432a..ab511bc 100644
--- a/share/html/Admin/Tools/Queries.html
+++ b/share/html/Admin/Tools/Queries.html
@@ -73,14 +73,15 @@ unless ($session{'CurrentUser'}->HasRight( Object=> $RT::System, Right => 'Super
% for my $request (@$history) {
% ++$r;
-% my $total = 0;
+% my ($total, $count) = (0, 0);
% for my $statement (@{ $request->{Queries} }) {
% $total += $statement->[3];
+% $count++;
% }
<li>
<&|/l, $request->{Path}, sprintf('%.4f', $total) &><tt>[_1]</tt> - <i>[_2]s</i></&>
- <a href="#" onclick="return hideshow('queries-<%$r%>');" title="Toggle queries"><&|/l&>Toggle queries</&></a>
+ <a href="#" onclick="return hideshow('queries-<%$r%>');"><&|/l, $count &>Toggle [quant,_1,query,queries]</&></a>
<table id="queries-<%$r%>" class="tablesorter hidden">
<thead>
<tr>
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list