[Rt-commit] rt branch, 4.0/loc-cleanups, updated. rt-4.0.1rc1-14-gcf837db
Shawn Moore
sartak at bestpractical.com
Mon May 23 19:01:14 EDT 2011
The branch, 4.0/loc-cleanups has been updated
via cf837db79e4bf32d790d76b740731aaeea92f48b (commit)
from c641cd6c33dfb6fac2dd57b28144a7da71cda261 (commit)
Summary of changes:
share/html/Admin/Tools/Queries.html | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
- Log -----------------------------------------------------------------
commit cf837db79e4bf32d790d76b740731aaeea92f48b
Author: Shawn M Moore <sartak at bestpractical.com>
Date: Mon May 23 19:00:24 2011 -0400
Lock down the queries loc string a lot
The intent is to just allow localization of the "Xs" as "X seconds"
diff --git a/share/html/Admin/Tools/Queries.html b/share/html/Admin/Tools/Queries.html
index 62c1514..1bbf5b8 100644
--- a/share/html/Admin/Tools/Queries.html
+++ b/share/html/Admin/Tools/Queries.html
@@ -71,14 +71,14 @@ unless ($session{'CurrentUser'}->HasRight( Object=> $RT::System, Right => 'Super
% for my $request (@$history) {
% ++$r;
-% my ($total, $count) = (0, 0);
+% my ($seconds, $count) = (0, 0);
% for my $statement (@{ $request->{Queries} }) {
-% $total += $statement->[3];
+% $seconds += $statement->[3];
% $count++;
% }
<li>
- <&|/l, $request->{Path}, sprintf('%.4f', $total) &><tt>[_1]</tt> - <i>[_2]s</i></&>
+ <tt><% $request->{Path} %></tt> - <i><&|/l, sprintf('%.4f', $seconds) &>[_1]s</&></i>
<a href="#" onclick="return hideshow('queries-<%$r%>');"><&|/l, $count &>Toggle [quant,_1,query,queries]</&></a>
<table id="queries-<%$r%>" class="tablesorter hidden">
<thead>
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list