[LON-CAPA-cvs] cvs: loncom /homework/caparesponse caparesponse.pm /interface loncommon.pm

albertel lon-capa-cvs@mail.lon-capa.org
Thu, 15 Mar 2007 02:51:30 -0000


albertel		Wed Mar 14 22:51:30 2007 EDT

  Modified files:              
    /loncom/interface	loncommon.pm 
    /loncom/homework/caparesponse	caparesponse.pm 
  Log:
  - some visual improvements to numerical response displays
  
  
Index: loncom/interface/loncommon.pm
diff -u loncom/interface/loncommon.pm:1.514 loncom/interface/loncommon.pm:1.515
--- loncom/interface/loncommon.pm:1.514	Wed Mar  7 20:58:44 2007
+++ loncom/interface/loncommon.pm	Wed Mar 14 22:51:23 2007
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # a pile of common routines
 #
-# $Id: loncommon.pm,v 1.514 2007/03/08 01:58:44 albertel Exp $
+# $Id: loncommon.pm,v 1.515 2007/03/15 02:51:23 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -4205,6 +4205,28 @@
     font-size: larger;
 }
 
+table.LC_prior_tries {
+    border-width: 1px;
+    border-style: solid;
+    border-color: gray;
+    border-collapse: collapse;
+}
+table.LC_prior_tries th,
+table.LC_prior_tries td {
+    border-width: 1px;
+    border-style: solid;
+    border-color: gray;
+    padding: 3px;
+}
+table.LC_prior_tries tr.LC_correct {
+    font-weight: bold;
+    background: #aaffaa;
+}
+span.LC_prior_numerical {
+    font-family: monospace;
+    white-space: pre;
+}
+
 END
 }
 
Index: loncom/homework/caparesponse/caparesponse.pm
diff -u loncom/homework/caparesponse/caparesponse.pm:1.209 loncom/homework/caparesponse/caparesponse.pm:1.210
--- loncom/homework/caparesponse/caparesponse.pm:1.209	Wed Feb 28 21:31:29 2007
+++ loncom/homework/caparesponse/caparesponse.pm	Wed Mar 14 22:51:29 2007
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # caparesponse definition
 #
-# $Id: caparesponse.pm,v 1.209 2007/03/01 02:31:29 albertel Exp $
+# $Id: caparesponse.pm,v 1.210 2007/03/15 02:51:29 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -800,8 +800,9 @@
 	my $key = "$i:resource.$part.$id.submission";
 	next if (!exists($Apache::lonhomework::history{"$key"}));
 	$Apache::inputtags::submission_display{$key} =
-	    '<pre>'.&HTML::Entities::encode($Apache::lonhomework::history{$key},
-					  '"<>&').'</pre>';
+	    '<span class="LC_prior_numerical">'.
+	    &HTML::Entities::encode($Apache::lonhomework::history{$key},
+				    '"<>&').'</span>';
     }
 }