[LON-CAPA-cvs] cvs: loncom /homework bridgetask.pm
albertel
lon-capa-cvs@mail.lon-capa.org
Thu, 29 Sep 2005 19:27:21 -0000
albertel Thu Sep 29 15:27:21 2005 EDT
Modified files:
/loncom/homework bridgetask.pm
Log:
- only show status if they have passed or failed it
Index: loncom/homework/bridgetask.pm
diff -u loncom/homework/bridgetask.pm:1.55 loncom/homework/bridgetask.pm:1.56
--- loncom/homework/bridgetask.pm:1.55 Thu Sep 29 15:18:37 2005
+++ loncom/homework/bridgetask.pm Thu Sep 29 15:27:19 2005
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# definition of tags that give a structure to a document
#
-# $Id: bridgetask.pm,v 1.55 2005/09/29 19:18:37 albertel Exp $
+# $Id: bridgetask.pm,v 1.56 2005/09/29 19:27:19 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -564,7 +564,8 @@
"</table>";
$result.=&Apache::inputtags::gradestatus('0');
}
- if (&show_task($status,$previous)) {
+ if (&show_task($status,$previous) &&
+ $Apache::lonhomework::history{"resource.$version.status"} =~ /^(pass|fail)$/) {
my $bt_status=$Apache::lonhomework::history{"resource.$version.status"};
my $title=&Apache::lonnet::gettitle();
my %slot=&Apache::lonnet::get_slot($Apache::inputtags::slot_name);