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

albertel lon-capa-cvs-allow@mail.lon-capa.org
Fri, 07 Sep 2007 00:09:08 -0000


albertel		Thu Sep  6 20:09:08 2007 EDT

  Modified files:              
    /loncom/interface	lonviewclasslist.pm 
  Log:
  - add some css to error messages
  
  
Index: loncom/interface/lonviewclasslist.pm
diff -u loncom/interface/lonviewclasslist.pm:1.8 loncom/interface/lonviewclasslist.pm:1.9
--- loncom/interface/lonviewclasslist.pm:1.8	Thu Jul 19 20:15:06 2007
+++ loncom/interface/lonviewclasslist.pm	Thu Sep  6 20:09:07 2007
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Handler to display the classlist 
 #
-# $Id: lonviewclasslist.pm,v 1.8 2007/07/20 00:15:06 raeburn Exp $
+# $Id: lonviewclasslist.pm,v 1.9 2007/09/07 00:09:07 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -275,7 +275,7 @@
                     $link = '<a href="/adm/'.$domain.'/'.$username.'/aboutme/portfolio?classlist">'.$link.'</a>'; 
                 }
             } else {
-                $link = &mt("Error retrieving file information.");
+                $link = '<span class="LC_error">'.&mt("Error retrieving file information.").'</span>';
             }
             $Str .= '<td>'.$link.'</td>';
         }
@@ -342,10 +342,10 @@
             if ($result eq 'ok') {
                 $output .= &mt('Display of your name in the student-viewable roster set to <b>[_1]</b>.',$visibility);
             } else {
-                $output .= &mt('Error occurred saving display setting.');
+                $output .= '<span class="LC_error">'.&mt('Error occurred saving display setting.').'</span>';
             }
         } else {
-            $output .= &mt('Error occurred saving display setting.');
+            $output .= '<span class="LC_error">'.&mt('Error occurred saving display setting.').'</span>';
         }
     } else {
         $output .= &mt('Display of your name in the student-viewable roster unchanged (set to <b>[_1]</b>).',$visibility);