[LON-CAPA-cvs] cvs: loncom(version_2_8_X) /interface lonquickgrades.pm

raeburn raeburn@source.lon-capa.org
Fri, 12 Dec 2008 18:44:32 -0000


raeburn		Fri Dec 12 18:44:32 2008 EDT

  Modified files:              (Branch: version_2_8_X)
    /loncom/interface	lonquickgrades.pm 
  Log:
  - Backport 1.45.
  
  
Index: loncom/interface/lonquickgrades.pm
diff -u loncom/interface/lonquickgrades.pm:1.43 loncom/interface/lonquickgrades.pm:1.43.2.1
--- loncom/interface/lonquickgrades.pm:1.43	Thu Oct 16 16:35:53 2008
+++ loncom/interface/lonquickgrades.pm	Fri Dec 12 18:44:32 2008
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Quick Student Grades Display
 #
-# $Id: lonquickgrades.pm,v 1.43 2008/10/16 16:35:53 bisitz Exp $
+# $Id: lonquickgrades.pm,v 1.43.2.1 2008/12/12 18:44:32 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -255,13 +255,22 @@
                 for (my $i = 1; $i < $depth; $i++) { $thisIndent .= $indentString; }
                 
                 $r->print("$thisIndent$title</td>");
-		if ($totalAttempted) {
-		    $r->print("<td valign='top'>$thisIndent<nobr>$correct / $attempted / $total</nobr></td>"
+                if ($totalAttempted) {
+                    $r->print('<td valign="top">'
+                             .$thisIndent
+                             .'<span class="LC_nobreak">'
+                             .$correct.' / '.$attempted.' / '.$total
+                             .'</span></td>'
+                             .&Apache::loncommon::end_data_table_row()
+                    );
+                } else {
+                    $r->print('<td valign="top">'
+                             .$thisIndent
+                             .'<span class="LC_nobreak">'
+                             .$correct.' / '.$total
+                             .'</span></td>'
                              .&Apache::loncommon::end_data_table_row());
-		} else {
-		    $r->print("<td valign='top'>$thisIndent<nobr>$correct / $total</nobr></td>"
-                             .&Apache::loncommon::end_data_table_row());
-		}
+                }
             }
         }