[LON-CAPA-cvs] cvs: loncom /homework inputtags.pm

raeburn raeburn at source.lon-capa.org
Sat Oct 8 15:12:19 EDT 2011


raeburn		Sat Oct  8 19:12:19 2011 EDT

  Modified files:              
    /loncom/homework	inputtags.pm 
  Log:
  - In previous tries, do not include "New problem variation this try" on
    first try.
  
  
Index: loncom/homework/inputtags.pm
diff -u loncom/homework/inputtags.pm:1.293 loncom/homework/inputtags.pm:1.294
--- loncom/homework/inputtags.pm:1.293	Tue Jul 26 17:14:51 2011
+++ loncom/homework/inputtags.pm	Sat Oct  8 19:12:19 2011
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # input  definitons
 #
-# $Id: inputtags.pm,v 1.293 2011/07/26 17:14:51 raeburn Exp $
+# $Id: inputtags.pm,v 1.294 2011/10/08 19:12:19 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1580,7 +1580,7 @@
                              {$1 <strong>$txt_correct</strong>. $3}s;
 	    }
             my $trystr = "(".&mt('Try [_1]',$Apache::lonhomework::history{"$prefix.tries"}).")";
-            if ($curr_rndseed || $lastrndseed) {
+            if (($curr_rndseed || $lastrndseed) && ($i > 1)) {
                 if ($curr_rndseed ne $lastrndseed) {
                     $trystr .= '<br /><span style="color: green; white-space: nowrap; font-style: italic; font-weight: bold; font-size: 80%;">'.&mt('New problem variation this try.').'</span>';
                 }




More information about the LON-CAPA-cvs mailing list