--- loncom/homework/templates/DropBox.problem 2010/04/20 23:58:31 1.15 +++ loncom/homework/templates/DropBox.problem 2011/05/01 17:17:09 1.17 @@ -9,12 +9,15 @@ $weight=&EXT('resource.0.weight'); if ((!defined($weight)) || ($weight eq '')) { $weight=1; } $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 '. +if (!defined($scoreformat) || $scoreformat eq '') { $scoreformat="2f"; } +$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/) { @@ -36,9 +39,10 @@ if (!defined($gradeinfo) || $gradeinfo!~ $display
You should adjust this resource in "Modify parameter settings for this resource:" -