From: Ivan Kohler Date: Mon, 12 Nov 2012 07:29:36 +0000 (-0800) Subject: RT 3.8.15 X-Git-Url: http://git.freeside.biz/gitweb/?a=commitdiff_plain;h=fb8e122215412174e8a39dd9d5197d79f0bd4f96;p=freeside.git RT 3.8.15 --- diff --git a/rt/share/html/Elements/LoginRedirectWarning b/rt/share/html/Elements/LoginRedirectWarning new file mode 100644 index 000000000..891e38114 --- /dev/null +++ b/rt/share/html/Elements/LoginRedirectWarning @@ -0,0 +1,20 @@ +<%args> +$next => undef + +<%init> +return unless $next; + +my $destination = RT::Interface::Web::FetchNextPage($next); +return unless ref $destination and $destination->{'HasSideEffects'}; + +my $consequence = RT::Interface::Web::PotentialPageAction($destination->{'url'}) || loc("perform actions"); + $consequence = $m->interp->apply_escapes($consequence => "h"); + +
+

+ <&|/l&>After logging in you'll be sent to your original destination: + <% $destination->{'url'} %> + <&|/l_unsafe, "$consequence" &>which may [_1] on your behalf. +

+

<&|/l&>If this is not what you expect, leave this page now without logging in.

+