[LON-CAPA-cvs] cvs: loncom(version_2_11_X) /homework inputtags.pm
raeburn
raeburn at source.lon-capa.org
Wed Nov 20 18:07:39 EST 2019
raeburn Wed Nov 20 23:07:39 2019 EDT
Modified files: (Branch: version_2_11_X)
/loncom/homework inputtags.pm
Log:
- For 2.11
- Backport 1.350, 1.351.
Index: loncom/homework/inputtags.pm
diff -u loncom/homework/inputtags.pm:1.333.2.7 loncom/homework/inputtags.pm:1.333.2.8
--- loncom/homework/inputtags.pm:1.333.2.7 Sun Aug 11 17:16:25 2019
+++ loncom/homework/inputtags.pm Wed Nov 20 23:07:39 2019
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# input definitons
#
-# $Id: inputtags.pm,v 1.333.2.7 2019/08/11 17:16:25 raeburn Exp $
+# $Id: inputtags.pm,v 1.333.2.8 2019/11/20 23:07:39 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -1037,6 +1037,7 @@
'not_charged_try' => 'LC_answer_not_charged_try',
'no_grade' => 'LC_answer_no_grade',
'no_message' => 'LC_no_message',
+ 'no_charge_warn' => 'LC_answer_warning',
);
my $part = $Apache::inputtags::part;
@@ -1201,7 +1202,11 @@
my ($used,$min,$max)=split(':',$awardmsg);
my $word = ($used < $min) ? 'more' : 'fewer';
$message = &mt("Submission not graded. Use $word digits.",$used);
- $css_class=$possible_class{'not_charged_try'};
+ if (&Apache::lonhomework::show_some_problem_status()) {
+ $css_class=$possible_class{'no_charge_warn'};
+ } else {
+ $css_class=$possible_class{'not_charged_try'};
+ }
$button=1;
} elsif ($award eq 'UNIT_INVALID_INSTRUCTOR') {
$message = &mt('Error in instructor specifed unit. This error has been reported to the instructor.', $awardmsg);
More information about the LON-CAPA-cvs
mailing list