[LON-CAPA-cvs] cvs: loncom /interface lonremote.pm

albertel lon-capa-cvs@mail.lon-capa.org
Thu, 15 Jul 2004 19:59:46 -0000


albertel		Thu Jul 15 15:59:46 2004 EDT

  Modified files:              
    /loncom/interface	lonremote.pm 
  Log:
  - add more text about how authoring requires a remote if the user is requesting an author role. BUG#3210
  
  
Index: loncom/interface/lonremote.pm
diff -u loncom/interface/lonremote.pm:1.12 loncom/interface/lonremote.pm:1.13
--- loncom/interface/lonremote.pm:1.12	Fri Jul  2 04:42:44 2004
+++ loncom/interface/lonremote.pm	Thu Jul 15 15:59:46 2004
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # User Authentication Module
 #
-# $Id: lonremote.pm,v 1.12 2004/07/02 08:42:44 albertel Exp $
+# $Id: lonremote.pm,v 1.13 2004/07/15 19:59:46 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -69,7 +69,10 @@
     my $bodytag=&Apache::loncommon::bodytag('Collapse Remote Control');
     my $windowinfo=&Apache::lonmenu::close();
 #    my $switch='<meta HTTP-EQUIV="Refresh" CONTENT="0.5; url='.$lowerurl.'">';
-    my $message=&mt("The external menu (Remote Control) has been disabled, and you will be working with the smaller inline menu.\nYou may have either closed the Remote Control window, or it was blocked by a pop-up window filter in your browser.\nTo use the Remote Control, disable the filter for this site, and re-launch the Remote Control from the inline menu."); 
+    my $message='<p>'.&mt("The external menu (Remote Control) has been disabled, and you will be working with the smaller inline menu.\nYou may have either closed the Remote Control window, or it was blocked by a pop-up window filter in your browser.\nTo use the Remote Control, disable the filter for this site, and re-launch the Remote Control from the inline menu.").'</p>'; 
+    if ($ENV{'request.role'} =~ /^(ca|au)\./) {
+	$message.='<p>'.&mt(" Authoring roles <b>require</b> use of the remote control. In order to Author you will need to disable popups filtering for this site.").'</p>';
+    }
     $r->print(<<ENDCOLLAPSE);
 <html>
 <head>