[Bps-public-commit] r13257 - RT-BugTracker/html/Dist
ruz at bestpractical.com
ruz at bestpractical.com
Thu Jun 12 21:22:59 EDT 2008
Author: ruz
Date: Thu Jun 12 21:22:59 2008
New Revision: 13257
Modified:
RT-BugTracker/html/Dist/Display.html
Log:
* use new comp
Modified: RT-BugTracker/html/Dist/Display.html
==============================================================================
--- RT-BugTracker/html/Dist/Display.html (original)
+++ RT-BugTracker/html/Dist/Display.html Thu Jun 12 21:22:59 2008
@@ -49,6 +49,7 @@
Title => $title,
RSSAutoDiscovery => $RSSFeedURL,
&>
+
<& /Dist/Elements/Tabs,
current_tab => '/Dist/Display.html',
current_subtab => $current_subtab,
@@ -58,17 +59,10 @@
<& /Dist/Elements/ShowMaintainers, Queue => $QueueObj &>
-<h3><% loc('Bugs') %> [<a href="<% $RSSFeedURL %>"><% loc('RSS') %></a>]</h3>
-
-<& /Elements/TicketList,
- OrderBy => $OrderBy,
- Order => $Order,
- Query => $Query,
- Format => $Format,
- Rows => $Rows,
- Page => $Page,
- Name => $Name,
- AllowSorting => 1,
+<& /Dist/Elements/ShowBugs,
+ %ARGS,
+ Queue => $QueueObj,
+ Status => $Status,
BaseURL => $base_url,
&>
@@ -81,34 +75,10 @@
$m->comp('/Public/Elements/ErrorNoDist', Queue => $Name, %ARGS);
$m->abort();
}
-
-unless ( ($Status||'') eq 'Active' || $QueueObj->IsValidStatus( $Status ) ) {
- $m->comp('/Elements/Error', Why => q{no such status as '} . $Status . q{'});
- $m->abort();
-}
-
-my $Query = "Queue = '$Name'";
-if ( $Status eq 'Active' ) {
- $Query .= " AND ( "
- .join( ' OR ', map "Status = '$_'", $QueueObj->ActiveStatusArray )
- ." )";
-}
-else {
- $Query .= " AND Status = '$Status'";
-}
+$ARGS{'Name'} = $Name = $QueueObj->Name;
my $title = loc( "$Status bugs for [_1]", $Name );
-my $Format = <<EOF;
-'<a href="$RT::WebPath/Ticket/Display.html?id=__id__">__id__</a>/TITLE:ID',
-'<b><a href="$RT::WebPath/Ticket/Display.html?id=__id__">__Subject__</a></b>/TITLE:Subject',
-'__Status__',
-'__CustomField.{Severity}__',
-'<small>__LastUpdatedRelative__</small>',
-'__CustomField.{Broken in}__',
-'__CustomField.{Fixed in}__'
-EOF
-
my $current_subtab = "Dist/Display.html"
."?Status=". $m->interp->apply_escapes($Status, 'u')
."&Queue=". $m->interp->apply_escapes($QueueObj->Name, 'u');
@@ -116,16 +86,15 @@
my ($base_url) = ($current_subtab =~ m|^Dist/(.+)$|);
$base_url .= '&';
-my $ShortQueryString = "?".$m->comp('/Elements/QueryString', Query => $Query);
-my $RSSFeedURL = "$RT::WebPath/Search/Results.rdf$ShortQueryString";
+my $RSSFeedURL = $m->comp('/Dist/Elements/ShowBugs:RSS',
+ Queue => $QueueObj,
+ Status => $Status,
+);
+
</%INIT>
<%ARGS>
-$Name => undef
+$Name => undef
# Queue is an alias for Name, Name has higher precendance
-$Queue => undef
-$Order => 'DESC'
-$OrderBy => 'LastUpdated'
-$Rows => undef
-$Page => 1
+$Queue => undef
$Status => 'Active'
</%ARGS>
More information about the Bps-public-commit
mailing list