[Rt-commit] [svn] r1293 - rt/branches/3.2-RELEASE/html/Elements
leira at pallas.eruditorum.org
leira at pallas.eruditorum.org
Thu Jul 29 01:41:52 EDT 2004
Author: leira
Date: Thu Jul 29 01:41:51 2004
New Revision: 1293
Modified:
rt/branches/3.2-RELEASE/html/Elements/MyRequests
rt/branches/3.2-RELEASE/html/Elements/MyTickets
Log:
Make the TitleBox title a link to the same search, only not limited to 10.
Modified: rt/branches/3.2-RELEASE/html/Elements/MyRequests
==============================================================================
--- rt/branches/3.2-RELEASE/html/Elements/MyRequests (original)
+++ rt/branches/3.2-RELEASE/html/Elements/MyRequests Thu Jul 29 01:41:51 2004
@@ -44,10 +44,11 @@
%#
%# }}} END BPS TAGGED BLOCK
<&|/Elements/TitleBox,
- title => loc("[_1] newest unowned tickets...", $rows) &>
+ title => loc("[_1] newest unowned tickets...", $rows),
+ title_href => "Search/Results.html".$QueryString &>
<& /Elements/TicketList,
Format => "'<a href=\"$RT::WebPath/Ticket/Display.html?id=__id__\">__id__</a>/TITLE:#', '<a href=\"$RT::WebPath/Ticket/Display.html?id=__id__\">__Subject__</a>/TITLE:Subject', QueueName, ExtendedStatus, CreatedRelative, '<A HREF=\"$RT::WebPath/Ticket/Display.html?Action=Take&id=__id__\">".loc('Take')."</a>/TITLE: ' ",
- Query => "Owner = 'Nobody' AND ( Status = 'new' OR Status = 'open')",
+ Query => $Query,
OrderBy => 'Created',
Order => 'DESC',
ShowNavigation => 0,
@@ -57,4 +58,12 @@
</&>
<%init>
my $rows = $RT::MyRequestsLength;
+
+my $Query = "Owner = 'Nobody' AND ( Status = 'new' OR Status = 'open')";
+
+my $QueryString = '?' . $m->comp('/Elements/QueryString',
+ Query => $Query,
+ Order => 'DESC',
+ OrderBy => 'Priority') if ($Query);
+
</%init>
Modified: rt/branches/3.2-RELEASE/html/Elements/MyTickets
==============================================================================
--- rt/branches/3.2-RELEASE/html/Elements/MyTickets (original)
+++ rt/branches/3.2-RELEASE/html/Elements/MyTickets Thu Jul 29 01:41:51 2004
@@ -43,12 +43,14 @@
%# those contributions and any derivatives thereof.
%#
%# }}} END BPS TAGGED BLOCK
-<&|/Elements/TitleBox, title => loc('[_1] highest priority tickets I own', $rows) &>
+<&|/Elements/TitleBox,
+ title => loc('[_1] highest priority tickets I own', $rows),
+ title_href => "Search/Results.html".$QueryString &>
<& /Elements/TicketList,
Title => loc("[_1] highest priority tickets I requested...", $rows),
Format => "'<a href=\"$RT::WebPath/Ticket/Display.html?id=__id__\">__id__</a>/TITLE:#', '<a href=\"$RT::WebPath/Ticket/Display.html?id=__id__\">__Subject__</a>/TITLE:Subject', Priority, QueueName, ExtendedStatus",
- Query => " Owner = '".$session{'CurrentUser'}->Id."' AND ( Status = 'new' OR Status = 'open')",
+ Query => $Query,
OrderBy => 'Priority',
Order => 'DESC',
Rows => $rows,
@@ -57,5 +59,13 @@
</&>
<%init>
my $rows = $RT::MyTicketsLength;
+
+my $Query = " Owner = '".$session{'CurrentUser'}->Id."' AND ( Status = 'new' OR Status = 'open')";
+
+my $QueryString = '?' . $m->comp('/Elements/QueryString',
+ Query => $Query,
+ Order => 'DESC',
+ OrderBy => 'Priority') if ($Query);
+
</%init>
More information about the Rt-commit
mailing list