[Rt-commit] rt branch, query-logging, updated. rt-3.8.8-947-gb0c4ded

Shawn Moore sartak at bestpractical.com
Tue Sep 28 21:06:33 EDT 2010


The branch, query-logging has been updated
       via  b0c4ded32bf8c4eef734dbae83f441306fae6dd8 (commit)
      from  4748536a9e328356df2dc24650f341ae141bd313 (commit)

Summary of changes:
 share/html/Admin/Tools/Queries.html |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

- Log -----------------------------------------------------------------
commit b0c4ded32bf8c4eef734dbae83f441306fae6dd8
Author: Shawn M Moore <sartak at bestpractical.com>
Date:   Tue Sep 28 21:09:42 2010 -0400

    Show/hide query sets

diff --git a/share/html/Admin/Tools/Queries.html b/share/html/Admin/Tools/Queries.html
index 4007366..bc3432a 100644
--- a/share/html/Admin/Tools/Queries.html
+++ b/share/html/Admin/Tools/Queries.html
@@ -69,7 +69,10 @@ unless ($session{'CurrentUser'}->HasRight( Object=> $RT::System, Right => 'Super
     </script>
 
     <ol>
+%     my $r = 0;
 %     for my $request (@$history) {
+%         ++$r;
+
 %         my $total = 0;
 %         for my $statement (@{ $request->{Queries} }) {
 %             $total += $statement->[3];
@@ -77,7 +80,8 @@ unless ($session{'CurrentUser'}->HasRight( Object=> $RT::System, Right => 'Super
 
           <li>
               <&|/l, $request->{Path}, sprintf('%.4f', $total) &><tt>[_1]</tt> - <i>[_2]s</i></&>
-              <table class="tablesorter">
+              <a href="#" onclick="return hideshow('queries-<%$r%>');" title="Toggle queries"><&|/l&>Toggle queries</&></a>
+              <table id="queries-<%$r%>" class="tablesorter hidden">
                   <thead>
                       <tr>
                           <th><&|/l&>index</&></th>

-----------------------------------------------------------------------


More information about the Rt-commit mailing list