From: Gavin L. v. a. <we...@ma...> - 2005-12-22 18:53:20
|
Log Message: ----------- Gateway update: fix typo. Modified Files: -------------- webwork2/lib/WeBWorK/ContentGenerator: GatewayQuiz.pm Revision Data ------------- Index: GatewayQuiz.pm =================================================================== RCS file: /webwork/cvs/system/webwork2/lib/WeBWorK/ContentGenerator/GatewayQuiz.pm,v retrieving revision 1.16 retrieving revision 1.17 diff -Llib/WeBWorK/ContentGenerator/GatewayQuiz.pm -Llib/WeBWorK/ContentGenerator/GatewayQuiz.pm -u -r1.16 -r1.17 --- lib/WeBWorK/ContentGenerator/GatewayQuiz.pm +++ lib/WeBWorK/ContentGenerator/GatewayQuiz.pm @@ -1099,7 +1099,7 @@ # my $elapsed = sprintf("%4.2f",($endTime - # $set->open_date)/60); my $elapsed = - int(($endTime - set->open_date)/0.6 + 0.5)/100; + int(($endTime - $set->open_date)/0.6 + 0.5)/100; # we assume that allowed is an even number of minutes my $allowed = ($set->due_date - $set->open_date)/60; $scoreRecordedMessage[$i] = "Your score was not " . @@ -1198,7 +1198,8 @@ my $attemptScore = 0; if ( $submitAnswers || $checkAnswers ) { foreach my $pg ( @pg_results ) { -# to get the current result, we need to go through the parts of the problem +# to get the current result, we need to go through the parts of each problem +# (is there a better way of doing this?) FIXME: factor in problem weight foreach ( @{$pg->{flags}->{ANSWER_ENTRY_ORDER}} ) { $attemptScore += $pg->{answers}->{$_}->{score}; } @@ -1323,6 +1324,7 @@ print CGI::startform({-name=>"gwtimer", -method=>"POST", -action=>$r->uri}); print CGI::hidden({-name=>"gwpagetimeleft", -value=>$timeLeft}), "\n"; + print CGI::strong("Time Remaining:"), "\n"; print CGI::textfield({-name=>'gwtime', -default=>0, -size=>8}), CGI::strong("min:sec"), CGI::br(), "\n"; @@ -1335,11 +1337,10 @@ print CGI::end_div(); } -# this is a brutal hack to get a URL that won't require a proctor login if -# we've submitted a proctored test for the last time. above we've reset the +# this is a hack to get a URL that won't require a proctor login if we've +# submitted a proctored test for the last time. above we've reset the # assignment_type in this case, so we'll use that to decide if we should -# give a path to an unproctored test. note that this substitution leaves -# unproctored test URLs unchanged +# give a path to an unproctored test. my $action = $r->uri(); $action =~ s/proctored_quiz_mode/quiz_mode/ if ( $set->assignment_type() eq 'gateway' ); @@ -1347,8 +1348,8 @@ print CGI::startform({-name=>"gwquiz", -method=>"POST", -action=>$action}), $self->hidden_authen_fields, $self->hidden_proctor_authen_fields; -# FIXME RETURNTO -# this is a horrible hack to try and let us use a javascript link to +# FIXME +# this is a hack to try and let us use a javascript link to # trigger previews print CGI::hidden({-name=>'previewHack', -value=>''}), CGI::br(); # and the text for the link |