[LON-CAPA-cvs] cvs: loncom /interface lonprintout.pm printout.pl

bisitz bisitz@source.lon-capa.org
Tue, 02 Jun 2009 12:20:14 -0000


bisitz		Tue Jun  2 12:20:14 2009 EDT

  Modified files:              
    /loncom/interface	lonprintout.pm printout.pl 
  Log:
  Added error style to error messages
  
  
Index: loncom/interface/lonprintout.pm
diff -u loncom/interface/lonprintout.pm:1.553 loncom/interface/lonprintout.pm:1.554
--- loncom/interface/lonprintout.pm:1.553	Wed May  6 16:19:34 2009
+++ loncom/interface/lonprintout.pm	Tue Jun  2 12:20:14 2009
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Printout
 #
-# $Id: lonprintout.pm,v 1.553 2009/05/06 16:19:34 bisitz Exp $
+# $Id: lonprintout.pm,v 1.554 2009/06/02 12:20:14 bisitz Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -2306,7 +2306,7 @@
     # If there's been an unrecoverable SSI error, report it to the user
     if ($ssi_error) {
         my $helpurl = &Apache::loncommon::top_nav_help('Helpdesk');
-        $r->print('<br /><h2>'.&mt('An unrecoverable network error occurred:').'</h2><p>  '.
+        $r->print('<br /><p class="LC_error">'.&mt('An unrecoverable network error occurred:').'</p><p>'.
                   &mt('At least one of the resources you chose to print could not be rendered due to an unrecoverable error when communicating with a server:').
                   '<br />'.$ssi_last_error_resource.'<br />'.$ssi_last_error.
                   '</p><p>'.&mt('You can continue using the link provided below, but make sure to carefully inspect your output file! The errors will be marked in the file.').'<br />'.
Index: loncom/interface/printout.pl
diff -u loncom/interface/printout.pl:1.141 loncom/interface/printout.pl:1.142
--- loncom/interface/printout.pl:1.141	Fri Apr 17 10:02:49 2009
+++ loncom/interface/printout.pl	Tue Jun  2 12:20:14 2009
@@ -1,7 +1,7 @@
 #!/usr/bin/perl
 # CGI-script to run LaTeX, dvips, ps2ps, ps2pdf etc.
 #
-# $Id: printout.pl,v 1.141 2009/04/17 10:02:49 foxr Exp $
+# $Id: printout.pl,v 1.142 2009/06/02 12:20:14 bisitz Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1056,13 +1056,15 @@
 	    #    $name_file     - is the name of the LaTeX file.
 	    #    $identifier    - is the unique LaTeX identifier.l
 	    
-            print "<br />";
+            print '<p class="LC_error">';
 	    if ($badtext) {
                 print &mt('There are errors in [_1].',$badtext);
             } else {
                 print &mt('There are errors.');
             }
-	    print "<br />".&mt('These errors prevent this resource from printing correctly.');
+            print '</p>'
+                 .&mt('These errors prevent this resource from printing correctly.');
+
 	    my $tex_handle = IO::File->new($texfile);
 	    my @tex_contents = <$tex_handle>;
 	    &send_error_mail($identifier, $badresource, $body_log_file, \@tex_contents);