[Bps-public-commit] r20200 - in RT-BugTracker-Public/html/Public: Bug

ruz at bestpractical.com ruz at bestpractical.com
Thu Dec 10 10:58:05 EST 2009


Author: ruz
Date: Thu Dec 10 10:58:05 2009
New Revision: 20200

Modified:
   RT-BugTracker-Public/html/Public/Bug/Report.html
   RT-BugTracker-Public/html/Public/Bug/Update.html
   RT-BugTracker-Public/html/Public/Dist/Display.html

Log:
* use new Tabs
* don't show bug list action in Bug/Report.html, but use Tabs we have instead

Modified: RT-BugTracker-Public/html/Public/Bug/Report.html
==============================================================================
--- RT-BugTracker-Public/html/Public/Bug/Report.html	(original)
+++ RT-BugTracker-Public/html/Public/Bug/Report.html	Thu Dec 10 10:58:05 2009
@@ -47,10 +47,10 @@
 %# END BPS TAGGED BLOCK }}}
 <& /Elements/Header, Title => loc("Report a bug in [_1]", $Queue) &>
 <& /Public/Elements/Tabs,
-        Title => loc("Report a bug in [_1]", $Queue),
-        current_tab => 'Public/Bug/Report.html',
-        actions => $actions,
-        &>
+    Title => loc("Report a bug in [_1]", $Queue),
+    queue => $Queue,
+    current_tab => $current_tab,
+&>
 
 <p>
 Thanks for taking the time to report a bug in <em><% $Queue %></em>.  You
@@ -262,13 +262,8 @@
     $m->abort();
 }
 
-my $actions = {
-    A => {
-        title   => loc("Bug list"),
-        path    => 'Public/Dist/Display.html?Name='
-                    . $m->interp->apply_escapes($Queue, 'u'),
-    },
-};
+my $current_tab = "Public/Bug/Report.html"
+    ."?Queue=". $m->interp->apply_escapes($QueueObj->Name, 'u');
 
 </%INIT>
 

Modified: RT-BugTracker-Public/html/Public/Bug/Update.html
==============================================================================
--- RT-BugTracker-Public/html/Public/Bug/Update.html	(original)
+++ RT-BugTracker-Public/html/Public/Bug/Update.html	Thu Dec 10 10:58:05 2009
@@ -47,8 +47,9 @@
 %# END BPS TAGGED BLOCK }}}
 <& /Elements/Header, Title => $title &>
 <& /Public/Elements/Tabs,
-    Ticket => $TicketObj,
-    Title => $title &>
+    Title => $title,
+    ticket => $TicketObj,
+&>
 
 <form action="<% $RT::WebPath %>/Public/Bug/Update.html" name="TicketUpdate" 
 	method="post" enctype="multipart/form-data">

Modified: RT-BugTracker-Public/html/Public/Dist/Display.html
==============================================================================
--- RT-BugTracker-Public/html/Public/Dist/Display.html	(original)
+++ RT-BugTracker-Public/html/Public/Dist/Display.html	Thu Dec 10 10:58:05 2009
@@ -50,8 +50,7 @@
 <& /Public/Elements/Tabs,
     Title => $title,
     queue => $Name,
-    current_tab => '/Public/Browse.html',
-    current_subtab => $current_subtab,
+    current_tab => $current_tab,
 &>
 
 <& /Dist/Elements/ShowNotes, Queue => $QueueObj &>
@@ -82,11 +81,11 @@
 
 my $title = loc( "$Status bugs for [_1]", $Name );
 
-my $current_subtab = "Public/Dist/Display.html"
+my $current_tab = "Public/Dist/Display.html"
     ."?Status=". $m->interp->apply_escapes($Status, 'u')
     ."&Name=". $m->interp->apply_escapes($QueueObj->Name, 'u');
 
-my ($base_url) = ($current_subtab =~ m|^Public/Dist/(.+)$|);
+my ($base_url) = ($current_tab =~ m|^Public/Dist/(.+)$|);
 $base_url .= '&';
 
 </%INIT>



More information about the Bps-public-commit mailing list