--- loncom/homework/templates/DropBox.problem 2010/04/20 23:58:31 1.15 +++ loncom/homework/templates/DropBox.problem 2010/05/27 16:56:20 1.16 @@ -10,11 +10,14 @@ if ((!defined($weight)) || ($weight eq ' $awarded=&EXT('user.resource.resource.0.awarded'); $scoreformat=&EXT('resource.0.scoreformat'); if (!defined($scoreformat) || $scoreformat eq '') { $scoreformat="0f"; } -if (!defined($awarded)) { - $display=$weight.' possible points.'; -} else { - $display='You have '.&format($awarded*$weight,$scoreformat).' out of '. +$display=''; +if (&EXT('resource.0.problemstatus')!~/^no/) { + if (!defined($awarded)) { + $display=$weight.' possible points.'; + } else { + $display='You have '.&format($awarded*$weight,$scoreformat).' out of '. $weight.' possible points.'; + } } $comment=&EXT('user.resource.resource.0.comment'); if (!defined($comment) || $comment!~/\w/) { @@ -39,6 +42,7 @@ You should adjust this resource in "Modi You can upload comments and grade information with this resource when uploading CSV files.