[LON-CAPA-cvs] cvs: loncom(version_2_10_X) /interface lonpreferences.pm

raeburn raeburn@source.lon-capa.org
Thu, 27 May 2010 15:52:35 -0000


raeburn		Thu May 27 15:52:35 2010 EDT

  Modified files:              (Branch: version_2_10_X)
    /loncom/interface	lonpreferences.pm 
  Log:
  - Reverse part of changes in 1.185, as Remote Control is retained in 2.10.
  
  
Index: loncom/interface/lonpreferences.pm
diff -u loncom/interface/lonpreferences.pm:1.186 loncom/interface/lonpreferences.pm:1.186.2.1
--- loncom/interface/lonpreferences.pm:1.186	Fri Mar 12 15:09:23 2010
+++ loncom/interface/lonpreferences.pm	Thu May 27 15:52:35 2010
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Preferences
 #
-# $Id: lonpreferences.pm,v 1.186 2010/03/12 15:09:23 raeburn Exp $
+# $Id: lonpreferences.pm,v 1.186.2.1 2010/05/27 15:52:35 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -2047,6 +2047,26 @@
 	linktitle => 'Change your password.',
 	});
     }
+    if ($env{'environment.remote'} eq 'off') {
+push(@{ $menu[1]->{items} }, {
+        linktext => 'Launch Remote Control',
+        url => '/adm/remote?url=/adm/preferences&action=launch',
+        permission => 'F',
+        #help => '',
+        icon => 'remotecontrol.png',
+        linktitle => 'Launch the remote control for LON-CAPA.',
+        });
+    }else{
+push(@{ $menu[1]->{items} }, {
+        linktext => 'Collapse Remote Control',
+        url => '/adm/remote?url=/adm/preferences&action=collapse',
+        permission => 'F',
+        #help => '',
+        icon => 'remotecontrol.png',
+        linktitle => 'Collapse the remote control for LON-CAPA.',
+        });
+    }
+
 
     if (&can_toggle_namelocking()) {
         push(@{ $menu[0]->{items} }, {