[Bps-public-commit] RT-Extension-MenubarSearches branch, master, updated. 0.06-2-g0bb4d25

? sunnavy sunnavy at bestpractical.com
Thu Apr 14 00:50:48 EDT 2011


The branch, master has been updated
       via  0bb4d25e5d06f09f1f232098d3807b4457bbcef7 (commit)
       via  a94434ac5a15201f21f8c471e8446d2bb1082b40 (commit)
      from  d44bfb291f956d4cda63e1a1e1cdf1aa6e6f1749 (commit)

Summary of changes:
 .../Elements/Tabs/Privileged                       |   51 ++++++++++++++++++++
 .../NoAuth/css/web2/main.css/End                   |    2 +
 html/RT-Extension-MenubarSearches/List             |    7 ++-
 3 files changed, 59 insertions(+), 1 deletions(-)
 create mode 100644 html/Callbacks/RT-Extension-MenubarSearches/Elements/Tabs/Privileged

- Log -----------------------------------------------------------------
commit a94434ac5a15201f21f8c471e8446d2bb1082b40
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Wed Apr 13 15:09:04 2011 +0800

    support rt4

diff --git a/html/Callbacks/RT-Extension-MenubarSearches/Elements/Tabs/Privileged b/html/Callbacks/RT-Extension-MenubarSearches/Elements/Tabs/Privileged
new file mode 100644
index 0000000..5694931
--- /dev/null
+++ b/html/Callbacks/RT-Extension-MenubarSearches/Elements/Tabs/Privileged
@@ -0,0 +1,51 @@
+%# BEGIN BPS TAGGED BLOCK {{{
+%# 
+%# COPYRIGHT:
+%# 
+%# This software is Copyright (c) 1996-2011 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/licenses/old-licenses/gpl-2.0.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 }}}
+<%INIT>
+PageWidgets()->child( menubar_searches => raw_html =>
+    $m->scomp('/RT-Extension-MenubarSearches/List' ) );
+</%INIT>
diff --git a/html/Callbacks/RT-Extension-MenubarSearches/NoAuth/css/web2/main.css/End b/html/Callbacks/RT-Extension-MenubarSearches/NoAuth/css/web2/main.css/End
index dbc5561..0e16cf6 100644
--- a/html/Callbacks/RT-Extension-MenubarSearches/NoAuth/css/web2/main.css/End
+++ b/html/Callbacks/RT-Extension-MenubarSearches/NoAuth/css/web2/main.css/End
@@ -1,3 +1,4 @@
+% if ( $m->comp_exists( '/Ticket/Elements/Tabs' ) ) {
 #topactions {
  min-width: 51em;
 }
@@ -5,3 +6,4 @@
 #topactions #goto_queue {
  float: left;
 }
+% }
diff --git a/html/RT-Extension-MenubarSearches/List b/html/RT-Extension-MenubarSearches/List
index d11878e..15096ec 100644
--- a/html/RT-Extension-MenubarSearches/List
+++ b/html/RT-Extension-MenubarSearches/List
@@ -17,7 +17,12 @@ while ( my $queue = $queues->Next ) {
 
 }
 </%init>
-<form method="post" action="/Search/Results.html" name="goto_queue" id="goto_queue" style="position: absolute; right: 35em;">
+<form method="post" action="/Search/Results.html" name="goto_queue" id="goto_queue" 
+%# rt4 doesn't have /Ticket/Elements/Tabs any more
+% if ( $m->comp_exists( '/Ticket/Elements/Tabs' ) ) {
+style="position: absolute; right: 35em;"
+% }
+>
 <select onchange="document.goto_queue.submit()" name="Query" class="select-queue">
 <option value=""><&|/l&>Show queue</&></option>
 % foreach (@queues) {

commit 0bb4d25e5d06f09f1f232098d3807b4457bbcef7
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Wed Apr 13 15:16:25 2011 +0800

    add webpath to action

diff --git a/html/RT-Extension-MenubarSearches/List b/html/RT-Extension-MenubarSearches/List
index 15096ec..c39485d 100644
--- a/html/RT-Extension-MenubarSearches/List
+++ b/html/RT-Extension-MenubarSearches/List
@@ -17,7 +17,7 @@ while ( my $queue = $queues->Next ) {
 
 }
 </%init>
-<form method="post" action="/Search/Results.html" name="goto_queue" id="goto_queue" 
+<form method="post" action="<%RT->Config->Get('WebPath')%>/Search/Results.html" name="goto_queue" id="goto_queue" 
 %# rt4 doesn't have /Ticket/Elements/Tabs any more
 % if ( $m->comp_exists( '/Ticket/Elements/Tabs' ) ) {
 style="position: absolute; right: 35em;"

-----------------------------------------------------------------------



More information about the Bps-public-commit mailing list