[LON-CAPA-cvs] cvs: loncom /homework grades.pm

www www@source.lon-capa.org
Thu, 07 May 2009 17:55:26 -0000


www		Thu May  7 17:55:26 2009 EDT

  Modified files:              
    /loncom/homework	grades.pm 
  Log:
  Make clearer what each failure mode means
  Don't generate a one-kilometer-long page when only uploading grades from
  one section in a large class.
  
  
Index: loncom/homework/grades.pm
diff -u loncom/homework/grades.pm:1.570 loncom/homework/grades.pm:1.571
--- loncom/homework/grades.pm:1.570	Thu May  7 15:47:06 2009
+++ loncom/homework/grades.pm	Thu May  7 17:55:25 2009
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # The LON-CAPA Grading handler
 #
-# $Id: grades.pm,v 1.570 2009/05/07 15:47:06 www Exp $
+# $Id: grades.pm,v 1.571 2009/05/07 17:55:25 www Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -4092,12 +4092,12 @@
     }
     $request->print('<br />'.&Apache::lonhtmlcommon::confirm_success(&mt("Saved scores for [quant,_1,student]",$countdone),$countdone==0));
     if (@skipped) {
-	$request->print('<p><span class="LC_warning">'.&mt('Skipped Students').'</span></p>');
-	foreach my $student (@skipped) { $request->print("$student<br />\n"); }
+	$request->print('<br />'.&Apache::lonhtmlcommon::confirm_success(&mt('No scores stored for the following username(s):'),1).'<br />');
+        $request->print(join(', ',@skipped));
     }
     if (@notallowed) {
-	$request->print('<p><span class="LC_error">'.&mt('Students Not Allowed to Modify').'</span></p>');
-	foreach my $student (@notallowed) { $request->print("$student<br />\n"); }
+	$request->print('<br />'.&Apache::lonhtmlcommon::confirm_success(&mt('Modification of scores not allowed for the following username(s):'),1).'<br />');
+	$request->print(join(', ',@notallowed));
     }
     $request->print("<br />\n");
     $request->print(&show_grading_menu_form($symb));