[LON-CAPA-cvs] cvs: loncom /homework bridgetask.pm
albertel
lon-capa-cvs@mail.lon-capa.org
Tue, 28 Nov 2006 16:43:51 -0000
albertel Tue Nov 28 11:43:51 2006 EDT
Modified files:
/loncom/homework bridgetask.pm
Log:
- make it say subquestion each time
Index: loncom/homework/bridgetask.pm
diff -u loncom/homework/bridgetask.pm:1.211 loncom/homework/bridgetask.pm:1.212
--- loncom/homework/bridgetask.pm:1.211 Tue Nov 28 11:36:04 2006
+++ loncom/homework/bridgetask.pm Tue Nov 28 11:43:51 2006
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# definition of tags that give a structure to a document
#
-# $Id: bridgetask.pm,v 1.211 2006/11/28 16:36:04 albertel Exp $
+# $Id: bridgetask.pm,v 1.212 2006/11/28 16:43:51 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -2250,13 +2250,15 @@
}
my $dim_info=
"\n<div class='LC_$dim_status LC_question_grade'>\n\t";
- my $question = ('sub' x $dimension{$dim}{'depth'}).'question';
- $question =~ s/^(.)/uc($1)/e;
+ my $ucquestion =
+ my $question =
+ ('sub' x $dimension{$dim}{'depth'}).'question';
+ $ucquestion =~ s/^(.)/uc($1)/e;
if ($dim_status eq 'pass') {
- $dim_info.='<h3>'.$question.' : you passed the above '.$mandatory.' question</h3>';
+ $dim_info.='<h3>'.$ucquestion.' : you passed the above '.$mandatory.' '.$question.'</h3>';
}
if ($dim_status eq 'fail') {
- $dim_info.='<h3>'.$question.' : you did not pass the above '.$mandatory.' question</h3>';
+ $dim_info.='<h3>'.$ucquestion.' : you did not pass the above '.$mandatory.' '.$question.'</h3>';
}
my %counts = &get_counts($dim,$instance,$parstack,
$safeeval);