[LON-CAPA-cvs] cvs: loncom /homework inputtags.pm
albertel
lon-capa-cvs@mail.lon-capa.org
Mon, 22 Dec 2003 22:24:21 -0000
albertel Mon Dec 22 17:24:21 2003 EDT
Modified files:
/loncom/homework inputtags.pm
Log:
- BUG#2519 , no maximm number of tries in CSTR space, so don't make one up
Index: loncom/homework/inputtags.pm
diff -u loncom/homework/inputtags.pm:1.124 loncom/homework/inputtags.pm:1.125
--- loncom/homework/inputtags.pm:1.124 Tue Nov 25 18:04:58 2003
+++ loncom/homework/inputtags.pm Mon Dec 22 17:24:21 2003
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# input definitons
#
-# $Id: inputtags.pm,v 1.124 2003/11/25 23:04:58 www Exp $
+# $Id: inputtags.pm,v 1.125 2003/12/22 22:24:21 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -24,8 +24,6 @@
# /home/httpd/html/adm/gpl.txt
#
# http://www.lon-capa.org/
-#
-# 2/19 Guy
package Apache::inputtags;
use HTML::Entities();
@@ -679,7 +677,9 @@
$trystr = '\vskip 0 mm ';
}
} else {
- $trystr = "<td>".&mt('Tries')." $tries/$maxtries</td>";
+ $trystr = "<td>".&mt('Tries')." $tries";
+ if($ENV{'request.state'} ne 'construct') { $trystr.="/$maxtries"; }
+ $trystr.="</td>";
}
}
if ( $status eq 'SHOW_ANSWER' || $status eq 'CANNOT_ANSWER') {$showbutton = 0;}