diff options
author | ivan <ivan> | 2008-03-02 04:11:51 +0000 |
---|---|---|
committer | ivan <ivan> | 2008-03-02 04:11:51 +0000 |
commit | 8103c1fc1b2c27a6855feadf26f91b980a54bc52 (patch) | |
tree | 631dd45606c37c00d9026e14ecc3ee3700b4b51c /rt/html/NoAuth | |
parent | 9c68254528b6f2c7d8c1921b452fa56064783782 (diff) |
import rt 3.6.6
Diffstat (limited to 'rt/html/NoAuth')
-rw-r--r-- | rt/html/NoAuth/Logout.html | 36 | ||||
-rw-r--r-- | rt/html/NoAuth/Reminder.html | 6 | ||||
-rw-r--r-- | rt/html/NoAuth/css/3.5-default/titlebox.css | 14 | ||||
-rw-r--r-- | rt/html/NoAuth/css/dhandler | 30 | ||||
-rw-r--r-- | rt/html/NoAuth/images/autohandler | 20 | ||||
-rw-r--r-- | rt/html/NoAuth/images/bplogo.gif | bin | 825 -> 755 bytes | |||
-rw-r--r-- | rt/html/NoAuth/images/css/fieldbg-autocomplete.gif | bin | 0 -> 1164 bytes | |||
-rw-r--r-- | rt/html/NoAuth/js/scriptaculous/controls.js | 0 | ||||
-rw-r--r-- | rt/html/NoAuth/js/scriptaculous/effects.js | 0 | ||||
-rw-r--r-- | rt/html/NoAuth/js/scriptaculous/prototype.js | 0 | ||||
-rw-r--r-- | rt/html/NoAuth/js/scriptaculous/scriptaculous.js | 0 |
11 files changed, 69 insertions, 37 deletions
diff --git a/rt/html/NoAuth/Logout.html b/rt/html/NoAuth/Logout.html index b6a238b..49b7a4e 100644 --- a/rt/html/NoAuth/Logout.html +++ b/rt/html/NoAuth/Logout.html @@ -2,7 +2,7 @@ %# %# COPYRIGHT: %# -%# This software is Copyright (c) 1996-2005 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2007 Best Practical Solutions, LLC %# <jesse@bestpractical.com> %# %# (Except where explicitly superseded by other copyright notices) @@ -22,7 +22,9 @@ %# %# 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., 675 Mass Ave, Cambridge, MA 02139, USA. +%# 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: @@ -43,25 +45,29 @@ %# those contributions and any derivatives thereof. %# %# END BPS TAGGED BLOCK }}} -<HTML> -<HEAD> -<TITLE>RT: Logout</TITLE> - <META HTTP-EQUIV="Refresh" CONTENT="0;URL=<%$URL%>"> -</HEAD> -<BODY> +<html> +<head> +<title>RT: Logout</title> + <meta HTTP-EQUIV="Refresh" content="0;URL=<%$URL%>"> +</head> +<body> <p><&|/l&>You have been logged out of RT.</&> -<br> -<br> -<A HREF="<%$URL%>"><&|/l&>You're welcome to login again</&></a> +<br /> +<br /> +<a href="<%$URL%>"><&|/l&>You're welcome to login again</&></a>. +% $m->abort(); + +<%INIT> +$m->comp('/Elements/Callback', _CallbackName => 'BeforeSessionDelete', %ARGS); -<%PERL> if (defined %session) { - tied(%session)->delete; + tied(%session)->delete; } -$m->abort(); -</%PERL> + +$m->comp('/Elements/Callback', _CallbackName => 'AfterSessionDelete', %ARGS); +</%INIT> <%ARGS> $URL => $RT::WebPath."/" diff --git a/rt/html/NoAuth/Reminder.html b/rt/html/NoAuth/Reminder.html index 0793f6c..dc935d4 100644 --- a/rt/html/NoAuth/Reminder.html +++ b/rt/html/NoAuth/Reminder.html @@ -2,7 +2,7 @@ %# %# COPYRIGHT: %# -%# This software is Copyright (c) 1996-2005 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2007 Best Practical Solutions, LLC %# <jesse@bestpractical.com> %# %# (Except where explicitly superseded by other copyright notices) @@ -22,7 +22,9 @@ %# %# 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., 675 Mass Ave, Cambridge, MA 02139, USA. +%# 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: diff --git a/rt/html/NoAuth/css/3.5-default/titlebox.css b/rt/html/NoAuth/css/3.5-default/titlebox.css index d4320c0..79d8040 100644 --- a/rt/html/NoAuth/css/3.5-default/titlebox.css +++ b/rt/html/NoAuth/css/3.5-default/titlebox.css @@ -51,22 +51,12 @@ .titlebox .titlebox-content { margin-top: -1px; + padding: 1em 2em 0.5em 2em; margin: 0; /*margin: 1em 2em 0.5em 2em;*/ } -.titlebox .titlebox-content .titlebox-content table { - margin: 1em 2em 0.5em 2em; -} -.titlebox th { - font-size: 0.8em; - -} - -.titlebox .titlebox-content table { - -} - +.titlebox th { font-size: 0.8em; } %# TRS: I wish there was a more elegant way to do this... I essentially need to %# select all elements X that do NOT have element Y as a descendant... which I can diff --git a/rt/html/NoAuth/css/dhandler b/rt/html/NoAuth/css/dhandler new file mode 100644 index 0000000..4c8ba34 --- /dev/null +++ b/rt/html/NoAuth/css/dhandler @@ -0,0 +1,30 @@ +<%ONCE> +my $squisher; +</%ONCE> +<%INIT> +my $arg = $m->dhandler_arg; +my $path; +if ( $arg =~ m{^(.*)-squished(\.[^\.]+)$} ) { + $path = $m->current_comp->dir_path .'/'. $1 . $2; +} +else { + return $m->decline; +} + +$squisher = new RT::CSS::Squish unless $squisher; +$squisher->{'mason'} = $m; + +$m->out( $squisher->concatenate( $path ) ); + +package RT::CSS::Squish; +use CSS::Squish '0.06'; +use base qw(CSS::Squish); +sub file_handle { + my $self = shift; + my $file = shift; + my $content = $self->{'mason'}->scomp($file); + open my $fh, '<', \$content or die "$!"; + return $fh; +} + +</%INIT> diff --git a/rt/html/NoAuth/images/autohandler b/rt/html/NoAuth/images/autohandler index 2e428c1..7209798 100644 --- a/rt/html/NoAuth/images/autohandler +++ b/rt/html/NoAuth/images/autohandler @@ -1,24 +1,28 @@ -<%init> +<%INIT> +&RT::Interface::Web::StaticFileHeaders(); # This autohandler will spit out RT's images if the user hasn't # properly configured their webserver to stop RT from passing # images through the mason handler. - my $file = $m->base_comp->source_file; -my $type = "application/octet-stream"; + +my $type = "application/octet-stream"; if ($file =~ /\.(gif|png|jpe?g)$/i) { $type = "image/$1"; $type =~ s/jpg/jpeg/gi; } -die unless (-f $file && -r $file); +die "file not found" unless -f $file && -r _; + $r->content_type($type); -open (FILE, "<$file") || die; +open my $fh, "<$file" or die "couldn't open file: $!"; +binmode($fh); { local $/ = \16384; - $m->out($_) while (<FILE>); - close(FILE); + $m->out($_) while (<$fh>); + $m->flush_buffer; } +close $fh; $m->abort; -</%init> +</%INIT> diff --git a/rt/html/NoAuth/images/bplogo.gif b/rt/html/NoAuth/images/bplogo.gif Binary files differindex e2cf49c..1bb0adf 100644 --- a/rt/html/NoAuth/images/bplogo.gif +++ b/rt/html/NoAuth/images/bplogo.gif diff --git a/rt/html/NoAuth/images/css/fieldbg-autocomplete.gif b/rt/html/NoAuth/images/css/fieldbg-autocomplete.gif Binary files differnew file mode 100644 index 0000000..aa7eed0 --- /dev/null +++ b/rt/html/NoAuth/images/css/fieldbg-autocomplete.gif diff --git a/rt/html/NoAuth/js/scriptaculous/controls.js b/rt/html/NoAuth/js/scriptaculous/controls.js new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/rt/html/NoAuth/js/scriptaculous/controls.js diff --git a/rt/html/NoAuth/js/scriptaculous/effects.js b/rt/html/NoAuth/js/scriptaculous/effects.js new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/rt/html/NoAuth/js/scriptaculous/effects.js diff --git a/rt/html/NoAuth/js/scriptaculous/prototype.js b/rt/html/NoAuth/js/scriptaculous/prototype.js new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/rt/html/NoAuth/js/scriptaculous/prototype.js diff --git a/rt/html/NoAuth/js/scriptaculous/scriptaculous.js b/rt/html/NoAuth/js/scriptaculous/scriptaculous.js new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/rt/html/NoAuth/js/scriptaculous/scriptaculous.js |