--- loncom/homework/inputtags.pm 2011/01/13 17:44:27 1.278 +++ loncom/homework/inputtags.pm 2011/03/05 23:00:45 1.281 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # input definitons # -# $Id: inputtags.pm,v 1.278 2011/01/13 17:44:27 www Exp $ +# $Id: inputtags.pm,v 1.281 2011/03/05 23:00:45 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1522,6 +1522,16 @@ sub previous_tries { ) { my $txt_correct = &mt('Correct'); + my $awarded = $Apache::lonhomework::history{"$prefix.awarded"}; + if ($awarded < 1 && $awarded > 0) { + $txt_correct=&mt('Partially Correct'); + } elsif ($awarded < 1) { + if ($awarded eq '') { + $txt_correct=''; + } else { + $txt_correct=&mt('Incorrect'); + } + } $message =~ s{()(.*?)()} {$1 $txt_correct. $3}s; }