[LON-CAPA-cvs] cvs: rat / lonpage.pm
raeburn
lon-capa-cvs@mail.lon-capa.org
Sun, 29 Aug 2004 19:25:34 -0000
raeburn Sun Aug 29 15:25:34 2004 EDT
Modified files:
/rat lonpage.pm
Log:
Modified message when page to be displayed is empty, or contains only hidden items. For the future: modify lonnavmaps so empty pages are not displayed in the map, and modify lonpageflip so empty pages are skipped when jumping to next resource.
Index: rat/lonpage.pm
diff -u rat/lonpage.pm:1.58 rat/lonpage.pm:1.59
--- rat/lonpage.pm:1.58 Sun Aug 29 14:45:52 2004
+++ rat/lonpage.pm Sun Aug 29 15:25:34 2004
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Page Handler
#
-# $Id: lonpage.pm,v 1.58 2004/08/29 18:45:52 raeburn Exp $
+# $Id: lonpage.pm,v 1.59 2004/08/29 19:25:34 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -351,7 +351,17 @@
unless ($contents) {
&Apache::loncommon::content_type($r,'text/html');
$r->send_http_header;
- $r->print('<html><body>'.&mt('Empty page').'.</body></html>');
+ $r->print('<html>'."\n".
+ '<head>'."\n".
+ &Apache::lonmenu::registerurl(1,undef)."\n".
+ '</head>'."\n".
+ '<body bgcolor="#FFFFFF" onLoad="'
+ .&Apache::lonmenu::loadevents.
+ '" onUnload="'.&Apache::lonmenu::unloadevents.'">'.
+ &Apache::lonmenu::menubuttons(undef,$target,1)
+ );
+ $r->print(&mt('This page is either empty or it only contains resources that are currently hidden').'. ');
+ $r->print('<br /><br />'.&mt('Please use the LON-CAPA navigation arrows to move to another item in the course').'.</body></html>');
} else {
# ------------------------------------------------------------------ Build page