[LON-CAPA-cvs] cvs: loncom /interface lonhelp.pm
raeburn
raeburn at source.lon-capa.org
Fri May 27 01:09:21 EDT 2022
raeburn Fri May 27 05:09:21 2022 EDT
Modified files:
/loncom/interface lonhelp.pm
Log:
- Bug 6907
Include an arrow in header when displaying help document to go back to
previous page, when context is LTI Provider, or deep-linked, and display
is embedded in another web page.
Index: loncom/interface/lonhelp.pm
diff -u loncom/interface/lonhelp.pm:1.46 loncom/interface/lonhelp.pm:1.47
--- loncom/interface/lonhelp.pm:1.46 Sat Apr 1 13:55:32 2017
+++ loncom/interface/lonhelp.pm Fri May 27 05:09:21 2022
@@ -1,6 +1,6 @@
# The LearningOnline Network with CAPA
#
-# $Id: lonhelp.pm,v 1.46 2017/04/01 13:55:32 raeburn Exp $
+# $Id: lonhelp.pm,v 1.47 2022/05/27 05:09:21 raeburn Exp $
#
# .tex help system web server handler
#
@@ -71,9 +71,16 @@
search => 'Search LON-CAPA help',
query => 'Search',
);
+ my $goback;
+ if ((($env{'request.lti.login'}) && ($env{'request.lti.target'} eq 'iframe')) ||
+ (($env{'request.deeplink.login'}) && ($env{'request.deeplink.target'} eq '_self'))) {
+ $goback = '<a href="javascript:history.go(-1);" class="LC_menubuttons_link" title="Go Back">'.
+ '<img src="/res/adm/pages/tolastloc.png" alt="'.&mt('Go Back').'" class="LC_icon" border="0" />'.
+ '</a> ';
+ }
$r->print(<<HEADER);
<h3 style="font: sans-serif"><img align="right" alt="help logo"
- src="/adm/help/gif/lonhelpheader.gif" />$lt{'header'}</h3><hr />
+ src="/adm/help/gif/lonhelpheader.gif" />$goback$lt{'header'}</h3><hr />
<!-- BEGIN -->
HEADER
if ($is_mobile) {
More information about the LON-CAPA-cvs
mailing list