From 945721f48f74d5cfffef7c7cf3a3d6bc2521f5dd Mon Sep 17 00:00:00 2001 From: ivan Date: Tue, 15 Jul 2003 13:16:32 +0000 Subject: import of rt 3.0.4 --- rt/html/index.html | 84 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 84 insertions(+) create mode 100644 rt/html/index.html (limited to 'rt/html/index.html') diff --git a/rt/html/index.html b/rt/html/index.html new file mode 100644 index 000000000..39eac8d61 --- /dev/null +++ b/rt/html/index.html @@ -0,0 +1,84 @@ +%# BEGIN LICENSE BLOCK +%# +%# Copyright (c) 1996-2003 Jesse Vincent +%# +%# (Except where explictly superceded by other copyright notices) +%# +%# 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. +%# +%# Unless otherwise specified, all modifications, corrections or +%# extensions to this work which alter its source code become the +%# property of Best Practical Solutions, LLC when submitted for +%# inclusion in the work. +%# +%# +%# END LICENSE BLOCK +<& /Elements/Header, Title=>loc("RT at a glance"), Refresh => $session{'home_refresh_interval'} &> +<& /Elements/Tabs, + current_toptab => '', + Title=>loc("RT at a glance") &> + + + + + +
+<& /Elements/MyTickets &> +
+<& /Elements/MyRequests &> +
+<& /Elements/Quicksearch &> +
+
+<& /Elements/Refresh, Name => 'HomeRefreshInterval', Default => $session {'home_refresh_interval'} &> +
+
+
+<%init> +if ( $ARGS{'q'} ) { + my $query = $ARGS{'q'}; + + if ( $query =~ m/^\s*(\d+)\s*$/ ) { + $m->redirect("$RT::WebPath/Ticket/Display.html?id=$1"); + } + + $session{'tickets'} = RT::Tickets->new( $session{'CurrentUser'} ); + + if ( $query =~ m/\@/ ) { + $session{'tickets'}->LimitRequestor( VALUE => $query, + OPERATOR => '=', ); + $m->redirect("$RT::WebPath/Search/Listing.html"); + } + + # + # Any search on queue name or subject will be for new/open tickets + # only. + # + $session{'tickets'}->LimitStatus( VALUE => $_, + OPERATOR => '=', ) for qw(open new); + + my $queue = RT::Queue->new( $session{'CurrentUser'} ); + if ( $queue->Load($query) && $queue->Id ) { + $session{'tickets'}->LimitQueue( VALUE => $queue->Id, + OPERATOR => '=', ); + $m->redirect("$RT::WebPath/Search/Listing.html"); + } + $session{'tickets'}->LimitSubject( VALUE => $query, + OPERATOR => 'LIKE' ); + + $m->redirect("$RT::WebPath/Search/Listing.html"); +} + +if ($ARGS{'HomeRefreshInterval'}) { + $session{'home_refresh_interval'} = $ARGS{'HomeRefreshInterval'}; +} + + -- cgit v1.2.1 From 289340780927b5bac2c7604d7317c3063c6dd8cc Mon Sep 17 00:00:00 2001 From: ivan Date: Thu, 11 Mar 2004 02:05:38 +0000 Subject: import of rt 3.0.9 --- rt/html/index.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'rt/html/index.html') diff --git a/rt/html/index.html b/rt/html/index.html index 39eac8d61..798972d94 100644 --- a/rt/html/index.html +++ b/rt/html/index.html @@ -53,7 +53,8 @@ if ( $ARGS{'q'} ) { $session{'tickets'} = RT::Tickets->new( $session{'CurrentUser'} ); if ( $query =~ m/\@/ ) { - $session{'tickets'}->LimitRequestor( VALUE => $query, + $session{'tickets'}->LimitWatcher( VALUE => $query, + TYPE => 'Requestor', OPERATOR => '=', ); $m->redirect("$RT::WebPath/Search/Listing.html"); } -- cgit v1.2.1 From c582e92888b4a5553e1b4e5214cf35217e4a0cf0 Mon Sep 17 00:00:00 2001 From: ivan Date: Thu, 11 Nov 2004 12:13:50 +0000 Subject: import rt 3.0.12 --- rt/html/index.html | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) (limited to 'rt/html/index.html') diff --git a/rt/html/index.html b/rt/html/index.html index 798972d94..928efb8f9 100644 --- a/rt/html/index.html +++ b/rt/html/index.html @@ -47,7 +47,8 @@ if ( $ARGS{'q'} ) { my $query = $ARGS{'q'}; if ( $query =~ m/^\s*(\d+)\s*$/ ) { - $m->redirect("$RT::WebPath/Ticket/Display.html?id=$1"); + $m->comp("/Ticket/Display.html" , id=> $1); + return(); } $session{'tickets'} = RT::Tickets->new( $session{'CurrentUser'} ); @@ -56,26 +57,36 @@ if ( $ARGS{'q'} ) { $session{'tickets'}->LimitWatcher( VALUE => $query, TYPE => 'Requestor', OPERATOR => '=', ); - $m->redirect("$RT::WebPath/Search/Listing.html"); + $m->comp("/Search/Listing.html"); + + return(); } # # Any search on queue name or subject will be for new/open tickets # only. # + $session{'tickets'}->LimitStatus( VALUE => $_, OPERATOR => '=', ) for qw(open new); + + my $queue = RT::Queue->new( $session{'CurrentUser'} ); if ( $queue->Load($query) && $queue->Id ) { $session{'tickets'}->LimitQueue( VALUE => $queue->Id, OPERATOR => '=', ); - $m->redirect("$RT::WebPath/Search/Listing.html"); + + + $m->comp("/Search/Listing.html"); + return(); } - $session{'tickets'}->LimitSubject( VALUE => $query, + $session{'tickets'}->LimitSubject( VALUE => $query, OPERATOR => 'LIKE' ); + $m->comp("/Search/Listing.html"); + + return(); - $m->redirect("$RT::WebPath/Search/Listing.html"); } if ($ARGS{'HomeRefreshInterval'}) { -- cgit v1.2.1 From d39d52aac8f38ea9115628039f0df5aa3ac826de Mon Sep 17 00:00:00 2001 From: ivan Date: Fri, 3 Dec 2004 20:40:48 +0000 Subject: import rt 3.2.2 --- rt/html/index.html | 116 ++++++++++++++++++++++++++++++++++++++++------------- 1 file changed, 88 insertions(+), 28 deletions(-) (limited to 'rt/html/index.html') diff --git a/rt/html/index.html b/rt/html/index.html index 928efb8f9..8c64b5aeb 100644 --- a/rt/html/index.html +++ b/rt/html/index.html @@ -1,8 +1,40 @@ -%# BEGIN LICENSE BLOCK + + + +Almost there! + + + +

+

You're almost there!

+You haven't yet configured your webserver to run RT. + +You appear to have installed RT's web interface correctly, but haven't yet configured your web +server to "run" the RT server which powers the web interface. + +The next step is to edit your webserver's configuration file to instruct it to use +RT's mod_perl, fastcgi or speedycgi handler. + +If you need commercial support, please contact us at sales@bestpractical.com. + + + -- cgit v1.2.1 From d4d0590bef31071e8809ec046717444b95b3f30a Mon Sep 17 00:00:00 2001 From: ivan Date: Sat, 15 Oct 2005 09:11:20 +0000 Subject: import rt 3.4.4 --- rt/html/index.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'rt/html/index.html') diff --git a/rt/html/index.html b/rt/html/index.html index 8c64b5aeb..04d48ece6 100644 --- a/rt/html/index.html +++ b/rt/html/index.html @@ -24,11 +24,11 @@ If you need commercial support, please contact us at sales@bestpractical.com.