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

bisitz bisitz at source.lon-capa.org
Fri Nov 16 11:54:45 EST 2012


bisitz		Fri Nov 16 16:54:45 2012 EDT

  Modified files:              
    /loncom/interface	loncommon.pm 
  Log:
  - Better distinguish error and warning messages: new color for warnings
  - Consistent layout: no font size change of error messages
  - Message on simple error page: Error style and separate paragraph
  
  
  
Index: loncom/interface/loncommon.pm
diff -u loncom/interface/loncommon.pm:1.1096 loncom/interface/loncommon.pm:1.1097
--- loncom/interface/loncommon.pm:1.1096	Thu Nov  8 20:46:42 2012
+++ loncom/interface/loncommon.pm	Fri Nov 16 16:54:45 2012
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # a pile of common routines
 #
-# $Id: loncommon.pm,v 1.1096 2012/11/08 20:46:42 raeburn Exp $
+# $Id: loncommon.pm,v 1.1097 2012/11/16 16:54:45 bisitz Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -5417,10 +5417,12 @@
 
 .LC_error {
   color: red;
-  font-size: larger;
 }
 
-.LC_warning,
+.LC_warning {
+  color: darkorange;
+}
+
 .LC_diff_removed {
   color: red;
 }
@@ -7847,7 +7849,7 @@
     my ($r,$title,$msg) = @_;
     my $page =
 	&Apache::loncommon::start_page($title).
-	'<span class="LC_warning">'.&mt($msg).'</span>'.
+	'<p class="LC_error">'.&mt($msg).'</p>'.
 	&Apache::loncommon::end_page();
     if (ref($r)) {
 	$r->print($page);




More information about the LON-CAPA-cvs mailing list