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

raeburn raeburn at source.lon-capa.org
Sun Jun 6 22:19:51 EDT 2021


raeburn		Mon Jun  7 02:19:51 2021 EDT

  Modified files:              
    /loncom/interface	courseprefs.pm 
  Log:
  - Bug 6907
    - Add "About LON-CAPA" item/logo to Header links.
    - Menu collection abbreviation for "Personal" item at far left now 'pers'
  
  
Index: loncom/interface/courseprefs.pm
diff -u loncom/interface/courseprefs.pm:1.91 loncom/interface/courseprefs.pm:1.92
--- loncom/interface/courseprefs.pm:1.91	Thu Oct 29 23:24:13 2020
+++ loncom/interface/courseprefs.pm	Mon Jun  7 02:19:51 2021
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Handler to set configuration settings for a course
 #
-# $Id: courseprefs.pm,v 1.91 2020/10/29 23:24:13 raeburn Exp $
+# $Id: courseprefs.pm,v 1.92 2021/06/07 02:19:51 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -884,10 +884,10 @@
                     my $currdef = $values->{'menudefault'};
                     my $possdef = $env{'form.menudefault'};
                     if (($possdef =~ /^\d+$/) && (grep(/^$possdef$/, at colls))) {
-                        if ($values->{'menudefault'} ne $possdef) {
+                        if ($currdef ne $possdef) {
                             $changes->{'menudefault'} = $possdef;
                         }
-                    } elsif ($values->{'menudefault'}) {
+                    } elsif ($currdef) {
                         $changes->{'menudefault'} = '';
                     }
                     my $menucoll;
@@ -4930,7 +4930,7 @@
     my %categories = (
                        shown => ['top','inline','main'],
                        text  => ['name','role','crs'],
-                       links => ['personal','menu','comm','roles','help','logout'],
+                       links => ['pers','logo','menu','comm','roles','help','logout'],
                        list => ['about','prefs','port','wish','anno','rss'],
                        inline => ['cont','grades','chat','people','groups','resv','syll','feeds'],
                      );
@@ -4952,7 +4952,8 @@
                top => 'Display header',
                inline => 'Display inline menu',
                main => 'Access to main menu',
-               personal => 'Personal',
+               pers => 'Personal',
+               logo => 'LON-CAPA',
                menu => 'Home',
                comm => 'Messages',
                roles => 'Roles/Courses',




More information about the LON-CAPA-cvs mailing list