X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Fshare%2Fhtml%2FElements%2FLoginRedirectWarning;fp=rt%2Fshare%2Fhtml%2FElements%2FLoginRedirectWarning;h=891e381146208876cb807487cf5ba857518f1853;hb=84f2df8931fa02e63fb21f8f0bb87dd9577b8919;hp=0000000000000000000000000000000000000000;hpb=d7678b9b97068dcd352f0ea101c6c8d02ae330d6;p=freeside.git 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.

+