Replaced the account.options loop in the displayAccount auth methods with new macros for displaying deactivate account and back to site links. Another macro which allows text to be displayed according to whether the value passed in is empty or not was added to allow functionality similar to that which currently exists.

This commit is contained in:
Frank Dillon 2008-11-18 07:05:23 +00:00
parent d91bc5754d
commit 32979d75e1
13 changed files with 175 additions and 82 deletions

View file

@ -0,0 +1,37 @@
package WebGUI::Macro::BackToSite;
#-------------------------------------------------------------------
# WebGUI is Copyright 2001-2008 Plain Black Corporation.
#-------------------------------------------------------------------
# Please read the legal notices (docs/legal.txt) and the license
# (docs/license.txt) that came with this distribution before using
# this software.
#-------------------------------------------------------------------
# http://www.plainblack.com info@plainblack.com
#-------------------------------------------------------------------
use strict;
=head1 NAME
Package WebGUI::Macro::BackToSite
=head1 DESCRIPTION
Tries to return a URL to take the user back to the last page they were at before
using an operation or other function. This will always include the gateway
url from the config file.
=head2 process
=cut
#-------------------------------------------------------------------
sub process {
my $session = shift;
return $session->url->getBackToSiteURL;
}
1;