[Bps-public-commit] r20180 - in RT-BugTracker-Public/html/Public: . Elements

ruz at bestpractical.com ruz at bestpractical.com
Wed Dec 2 04:05:12 EST 2009


Author: ruz
Date: Wed Dec  2 04:05:12 2009
New Revision: 20180

Added:
   RT-BugTracker-Public/html/Public/Dist/Browse.html   (contents, props changed)
Modified:
   RT-BugTracker-Public/html/Public/Browse.html
   RT-BugTracker-Public/html/Public/Dist/BeginsWith.html
   RT-BugTracker-Public/html/Public/Elements/Tabs

Log:
* match path in RT-BugTracker so we can jump when user is not public

Modified: RT-BugTracker-Public/html/Public/Browse.html
==============================================================================
--- RT-BugTracker-Public/html/Public/Browse.html	(original)
+++ RT-BugTracker-Public/html/Public/Browse.html	Wed Dec  2 04:05:12 2009
@@ -52,7 +52,7 @@
 $Name = '' unless defined $Name;
 RT::Interface::Web::Redirect(
     RT->Config->Get('WebURL')
-    .'Public/Dist/BeginsWith.html'
+    .'Public/Dist/Browse.html'
     .'?Name='. $m->interp->apply_escapes( $Name, 'u' )
 );
 </%INIT>

Modified: RT-BugTracker-Public/html/Public/Dist/BeginsWith.html
==============================================================================
--- RT-BugTracker-Public/html/Public/Dist/BeginsWith.html	(original)
+++ RT-BugTracker-Public/html/Public/Dist/BeginsWith.html	Wed Dec  2 04:05:12 2009
@@ -45,40 +45,14 @@
 %# those contributions and any derivatives thereof.
 %# 
 %# END BPS TAGGED BLOCK }}}
-<& /Elements/Header, Title => $title &>
-<& /Public/Elements/Tabs,
-    Title => $title,
-    current_toptab => 'Public/Dist/BeginsWith.html',
-&>
-
-<form action="<% RT->Config->Get('WebPath') %><% $m->request_path %>" method="GET">
-<p>
-<% loc('First letter is') %>
-% for my $letter ("A".."Z") {
-<a href="<% $RT::WebPath %>/Public/Dist/BeginsWith.html?Name=<% $letter %>">
-<% $letter eq $Name ? "<strong>$letter</strong>" : $letter |n %>
-</a>
-% }
- <% loc('or prefix is') %> <input type="text" name="Name" value="<% length($Name) > 1? $Name : '' %>" />
-</p>
-</form>
-
-% if ( length $Name ) {
-<& /Public/Elements/DistributionList, queues => $queues &>
-% }
-
-<%args>
+<%ARGS>
 $Name => undef
-</%args>
-<%init>
+</%ARGS>
+<%INIT>
 $Name = '' unless defined $Name;
-
-my ($title, $queues);
-if ( length $Name ) {
-    $title = loc("Distributions starting with '[_1]'", $Name);
-    $queues = RT::Queues->new( $session{CurrentUser} );
-    $queues->Limit(FIELD => 'Name', VALUE => $Name, OPERATOR => 'STARTSWITH');
-} else {
-    $title = loc("Browse Distributions");
-}
-</%init>
+RT::Interface::Web::Redirect(
+    RT->Config->Get('WebURL')
+    .'Public/Dist/Browse.html'
+    .'?Name='. $m->interp->apply_escapes( $Name, 'u' )
+);
+</%INIT>

Added: RT-BugTracker-Public/html/Public/Dist/Browse.html
==============================================================================
--- (empty file)
+++ RT-BugTracker-Public/html/Public/Dist/Browse.html	Wed Dec  2 04:05:12 2009
@@ -0,0 +1,69 @@
+%# BEGIN BPS TAGGED BLOCK {{{
+%# 
+%# COPYRIGHT:
+%#  
+%# This software is Copyright (c) 1996-2007 Best Practical Solutions, LLC 
+%#                                          <jesse at bestpractical.com>
+%# 
+%# (Except where explicitly superseded by other copyright notices)
+%# 
+%# 
+%# LICENSE:
+%# 
+%# This work is made available to you under the terms of Version 2 of
+%# the GNU General Public License. A copy of that license should have
+%# been provided with this software, but in any event can be snarfed
+%# from www.gnu.org.
+%# 
+%# This work is distributed in the hope that it will be useful, but
+%# WITHOUT ANY WARRANTY; without even the implied warranty of
+%# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+%# General Public License for more details.
+%# 
+%# You should have received a copy of the GNU General Public License
+%# along with this program; if not, write to the Free Software
+%# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+%# 02110-1301 or visit their web page on the internet at
+%# http://www.gnu.org/copyleft/gpl.html.
+%# 
+%# 
+%# CONTRIBUTION SUBMISSION POLICY:
+%# 
+%# (The following paragraph is not intended to limit the rights granted
+%# to you to modify and distribute this software under the terms of
+%# the GNU General Public License and is only of importance to you if
+%# you choose to contribute your changes and enhancements to the
+%# community by submitting them to Best Practical Solutions, LLC.)
+%# 
+%# By intentionally submitting any modifications, corrections or
+%# derivatives to this work, or any other work intended for use with
+%# Request Tracker, to Best Practical Solutions, LLC, you confirm that
+%# you are the copyright holder for those contributions and you grant
+%# Best Practical Solutions,  LLC a nonexclusive, worldwide, irrevocable,
+%# royalty-free, perpetual, license to use, copy, create derivative
+%# works based on those contributions, and sublicense and distribute
+%# those contributions and any derivatives thereof.
+%# 
+%# END BPS TAGGED BLOCK }}}
+<& /Elements/Header, Title => $title &>
+<& /Public/Elements/Tabs,
+    Title => $title,
+    current_toptab => 'Public/Dist/Browse.html',
+&>
+
+<& /Dist/Elements/BeginsWith, Name => $Name &>
+
+% if ( $queues ) {
+<& /Public/Elements/DistributionList, queues => $queues &>
+% }
+
+<%args>
+$Name => undef
+</%args>
+<%init>
+
+my ($queues, $title) = $m->comp(
+    '/Dist/Elements/BeginsWith:Process',
+    Name => $Name,
+);
+</%init>

Modified: RT-BugTracker-Public/html/Public/Elements/Tabs
==============================================================================
--- RT-BugTracker-Public/html/Public/Elements/Tabs	(original)
+++ RT-BugTracker-Public/html/Public/Elements/Tabs	Wed Dec  2 04:05:12 2009
@@ -79,7 +79,7 @@
     },
     C => {
         title => loc('Browse Distributions'),
-        path  => 'Public/Dist/BeginsWith.html',
+        path  => 'Public/Dist/Browse.html',
     },
 };
 



More information about the Bps-public-commit mailing list