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

matthew lon-capa-cvs@mail.lon-capa.org
Fri, 20 Feb 2004 16:44:44 -0000


matthew		Fri Feb 20 11:44:44 2004 EDT

  Modified files:              
    /loncom/interface	lonhtmlcommon.pm 
  Log:
  Cleanups and trivial style change to &breadcrumbs.
  
  
Index: loncom/interface/lonhtmlcommon.pm
diff -u loncom/interface/lonhtmlcommon.pm:1.53 loncom/interface/lonhtmlcommon.pm:1.54
--- loncom/interface/lonhtmlcommon.pm:1.53	Fri Feb 20 11:21:49 2004
+++ loncom/interface/lonhtmlcommon.pm	Fri Feb 20 11:44:43 2004
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # a pile of common html routines
 #
-# $Id: lonhtmlcommon.pm,v 1.53 2004/02/20 16:21:49 matthew Exp $
+# $Id: lonhtmlcommon.pm,v 1.54 2004/02/20 16:44:43 matthew Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -905,13 +905,20 @@
                  );
         $links .= '->' if ($links ne '');
         $links .= '<b>'.$last->{'text'}.'</b>';
+        #
+        my $icons = '';
+        if (exists($last->{'faq'})) {
+            $icons .= &Apache::loncommon::help_open_faq($last->{'faq'});
+        }
         if (exists($last->{'bug'})) {
-            $links = &Apache::loncommon::help_open_bug($last->{'bug'}).$links;
+            $icons .= &Apache::loncommon::help_open_bug($last->{'bug'});
         }
-        if (exists($last->{'faq'})) {
-            $links = &Apache::loncommon::help_open_faq($last->{'faq'}).$links;
+        if ($icons ne '') {
+            $Str .= $icons.'&nbsp;';
         }
+        #
         $Str .= $links.'</font></td>';
+        #
         if (defined($component)) {
             $Str .= '<td align="right" bgcolor="'.$color.'">'.
                 '<font size="+1">'.$component.'</font>';