--- loncom/interface/lonquickgrades.pm 2008/10/16 16:35:53 1.43 +++ loncom/interface/lonquickgrades.pm 2008/12/12 18:44:32 1.43.2.1 @@ -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 @@ sub real_handler { for (my $i = 1; $i < $depth; $i++) { $thisIndent .= $indentString; } $r->print("$thisIndent$title"); - if ($totalAttempted) { - $r->print("$thisIndent$correct / $attempted / $total" + if ($totalAttempted) { + $r->print('' + .$thisIndent + .'' + .$correct.' / '.$attempted.' / '.$total + .'' + .&Apache::loncommon::end_data_table_row() + ); + } else { + $r->print('' + .$thisIndent + .'' + .$correct.' / '.$total + .'' .&Apache::loncommon::end_data_table_row()); - } else { - $r->print("$thisIndent$correct / $total" - .&Apache::loncommon::end_data_table_row()); - } + } } }