[Rt-commit] rt branch, 3.9-trunk, updated. rt-3.8.8-772-gd7d0a91
Thomas Sibley
trs at bestpractical.com
Thu Sep 16 13:50:12 EDT 2010
The branch, 3.9-trunk has been updated
via d7d0a91e51ee3c813fbf02878c8380425a74618b (commit)
from 8c6214d610d8eff56fe2710c8f260beffc0c3b99 (commit)
Summary of changes:
share/html/Ticket/Elements/ShowRequestorTickets | 10 ++++++++++
.../Ticket/Elements/ShowRequestorTicketsActive | 3 +--
share/html/Ticket/Elements/ShowRequestorTicketsAll | 1 -
.../Ticket/Elements/ShowRequestorTicketsInactive | 3 +--
4 files changed, 12 insertions(+), 5 deletions(-)
- Log -----------------------------------------------------------------
commit d7d0a91e51ee3c813fbf02878c8380425a74618b
Author: Thomas Sibley <trs at bestpractical.com>
Date: Thu Sep 16 13:52:25 2010 -0400
Link the title of the requestor ticket list to the full search
diff --git a/share/html/Ticket/Elements/ShowRequestorTickets b/share/html/Ticket/Elements/ShowRequestorTickets
index 3d162da..0820453 100644
--- a/share/html/Ticket/Elements/ShowRequestorTickets
+++ b/share/html/Ticket/Elements/ShowRequestorTickets
@@ -45,6 +45,9 @@
%# those contributions and any derivatives thereof.
%#
%# END BPS TAGGED BLOCK }}}
+<span class="label">
+ <a href="<% $url %>"><&|/l, $Rows, $Description &>This user's [_1] highest priority [_2] tickets</&>:</a>
+</span>
<ul>
%while (my $w=$tickets->Next) {
%my $uri = RT::URI->new( $session{'CurrentUser'} );
@@ -61,9 +64,16 @@ my $tickets = RT::Tickets->new( $session{'CurrentUser'} );
$tickets->FromSQL( $sql );
$tickets->RowsPerPage( $Rows );
$tickets->OrderBy( FIELD => 'Priority', ORDER => 'DESC' );
+
+my $url = RT->Config->Get('WebPath') . '/Search/Results.html?';
+ $url .= $m->comp('/Elements/QueryString',
+ Query => $sql,
+ OrderBy => 'Priority',
+ Order => 'DESC' );
</%INIT>
<%ARGS>
$Requestor => undef
$conditions
$Rows => 10
+$Description => ''
</%ARGS>
diff --git a/share/html/Ticket/Elements/ShowRequestorTicketsActive b/share/html/Ticket/Elements/ShowRequestorTicketsActive
index 950f237..3e18601 100644
--- a/share/html/Ticket/Elements/ShowRequestorTicketsActive
+++ b/share/html/Ticket/Elements/ShowRequestorTicketsActive
@@ -45,8 +45,7 @@
%# those contributions and any derivatives thereof.
%#
%# END BPS TAGGED BLOCK }}}
-<span class="label"><&|/l, $Rows &>This user's [_1] highest priority active tickets</&>:</span>
-<& ShowRequestorTickets, %ARGS, conditions => $conditions, Rows => $Rows &>
+<& ShowRequestorTickets, %ARGS, Description => loc('active'), conditions => $conditions, Rows => $Rows &>
<%INIT>
unless ( @$conditions ) {
foreach (RT::Queue->ActiveStatusArray()) {
diff --git a/share/html/Ticket/Elements/ShowRequestorTicketsAll b/share/html/Ticket/Elements/ShowRequestorTicketsAll
index 5b6922e..40197cc 100644
--- a/share/html/Ticket/Elements/ShowRequestorTicketsAll
+++ b/share/html/Ticket/Elements/ShowRequestorTicketsAll
@@ -45,7 +45,6 @@
%# those contributions and any derivatives thereof.
%#
%# END BPS TAGGED BLOCK }}}
-<span class="label"><&|/l, $Rows &>This user's [_1] highest priority tickets</&>:</span>
<& ShowRequestorTickets, %ARGS, conditions => $conditions, Rows => $Rows &>
<%ARGS>
$Requestor => undef
diff --git a/share/html/Ticket/Elements/ShowRequestorTicketsInactive b/share/html/Ticket/Elements/ShowRequestorTicketsInactive
index d5a3b57..e8e07a9 100644
--- a/share/html/Ticket/Elements/ShowRequestorTicketsInactive
+++ b/share/html/Ticket/Elements/ShowRequestorTicketsInactive
@@ -45,8 +45,7 @@
%# those contributions and any derivatives thereof.
%#
%# END BPS TAGGED BLOCK }}}
-<span class="label"><&|/l, $Rows &>This user's [_1] highest priority inactive tickets</&>:</span>
-<& ShowRequestorTickets, %ARGS, conditions => $conditions, Rows => $Rows &>
+<& ShowRequestorTickets, %ARGS, Description => loc('inactive'), conditions => $conditions, Rows => $Rows &>
<%INIT>
unless ( @$conditions ) {
foreach (RT::Queue->InactiveStatusArray()) {
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list