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

albertel lon-capa-cvs@mail.lon-capa.org
Thu, 29 Jun 2006 16:32:17 -0000


albertel		Thu Jun 29 12:32:17 2006 EDT

  Modified files:              
    /loncom/interface	lonnavmaps.pm 
  Log:
  - use task icon for tasks
  
  
Index: loncom/interface/lonnavmaps.pm
diff -u loncom/interface/lonnavmaps.pm:1.388 loncom/interface/lonnavmaps.pm:1.389
--- loncom/interface/lonnavmaps.pm:1.388	Mon Jun 26 18:31:56 2006
+++ loncom/interface/lonnavmaps.pm	Thu Jun 29 12:32:14 2006
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Navigate Maps Handler
 #
-# $Id: lonnavmaps.pm,v 1.388 2006/06/26 22:31:56 albertel Exp $
+# $Id: lonnavmaps.pm,v 1.389 2006/06/29 16:32:14 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1096,7 +1096,13 @@
     
     if ($resource->is_problem()) {
         if ($part eq '0' || $params->{'condensed'}) {
-            $icon ='<img src="'.$location.'/problem.gif" alt="'.&mt('Problem').'" border="0" />';
+	    $icon = '<img src="'.$location.'/';
+	    if ($resource->is_task()) {
+		$icon .= 'task.gif" alt="'.&mt('Task');
+	    } else {
+		$icon .= 'problem.gif" alt="'.&mt('Problem');
+	    }
+	    $icon .='" border="0" />';
         } else {
             $icon = $params->{'indentString'};
         }