[LON-CAPA-cvs] cvs: loncom /homework inputtags.pm
sakharuk
lon-capa-cvs@mail.lon-capa.org
Thu, 24 Oct 2002 19:13:53 -0000
sakharuk Thu Oct 24 15:13:53 2002 EDT
Modified files:
/loncom/homework inputtags.pm
Log:
Changes in printing number of tries.
Index: loncom/homework/inputtags.pm
diff -u loncom/homework/inputtags.pm:1.66 loncom/homework/inputtags.pm:1.67
--- loncom/homework/inputtags.pm:1.66 Wed Oct 23 13:05:25 2002
+++ loncom/homework/inputtags.pm Thu Oct 24 15:13:53 2002
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# input definitons
#
-# $Id: inputtags.pm,v 1.66 2002/10/23 17:05:25 sakharuk Exp $
+# $Id: inputtags.pm,v 1.67 2002/10/24 19:13:53 sakharuk Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -426,7 +426,9 @@
if ( $maxtries eq 'con_lost' ) { $maxtries = '0'; }
if ( $showbutton ) {
if ($target eq 'tex') {
- $trystr = ' {\small Tries '.$tries.'/'.$maxtries.'} ';
+ if ((not $ENV{'request.role'}=~m/^au\./) and (not $ENV{'request.role'}=~m/^ca\./)) {
+ $trystr = ' {\small \textit{Tries} '.$tries.'/'.$maxtries.'} ';
+ }
} else {
$trystr = "<td>Tries $tries/$maxtries</td>";
}