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

albertel lon-capa-cvs@mail.lon-capa.org
Mon, 12 Aug 2002 19:45:12 -0000


albertel		Mon Aug 12 15:45:12 2002 EDT

  Modified files:              
    /loncom/interface	lonnavmaps.pm 
  Log:
  - added course description to nav screen BUG#639
  
  
Index: loncom/interface/lonnavmaps.pm
diff -u loncom/interface/lonnavmaps.pm:1.40 loncom/interface/lonnavmaps.pm:1.41
--- loncom/interface/lonnavmaps.pm:1.40	Mon Aug 12 14:21:42 2002
+++ loncom/interface/lonnavmaps.pm	Mon Aug 12 15:45:12 2002
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Navigate Maps Handler
 #
-# $Id: lonnavmaps.pm,v 1.40 2002/08/12 18:21:42 albertel Exp $
+# $Id: lonnavmaps.pm,v 1.41 2002/08/12 19:45:12 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -575,8 +575,10 @@
 	    }
 	    $r->print('><script>window.focus();</script>'.
 		      '<img align=right src=/adm/lonIcons/lonlogos.gif>'.
-		      '<h1>Navigate Course Map</h1>'.
-		      "<h3>$date</h3>");
+		      '<h1>Navigate Course Map</h1>');
+	    my $desc=$ENV{'course.'.$ENV{'request.course.id'}.'.description'};
+	    if (defined($desc)) { $r->print("<h2>$desc</h2>\n"); }
+	    $r->print("<h3>$date</h3>\n");
 	    $r->rflush();
 	    $r->print('<img src="/adm/lonMisc/chat.gif"> New discussion since '.
 		      localtime($lastcheck).