--- loncom/homework/bridgetask.pm 2005/11/18 20:29:13 1.79 +++ loncom/homework/bridgetask.pm 2005/11/21 17:47:37 1.80 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # definition of tags that give a structure to a document # -# $Id: bridgetask.pm,v 1.79 2005/11/18 20:29:13 albertel Exp $ +# $Id: bridgetask.pm,v 1.80 2005/11/21 17:47:37 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -709,20 +709,22 @@ DONEBUTTON $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); + + my $slot_name= + $Apache::lonhomework::history{"resource.$version.checkedin.slot"}; + my %slot=&Apache::lonnet::get_slot($slot_name); my $start_time= &Apache::lonlocal::locallocaltime($slot{'starttime'}); - my $status; - $status.="\n
\n"; + my $status = "\n
\n"; if ($bt_status eq 'pass') { $status.='

You passed the '.$title.' given on '. - $start_time.'.

'; + $start_time.''; } if ($bt_status eq 'fail') { $status.='

You did not pass the '.$title.' given on '. - $start_time.'.

'; + $start_time.''; if (!$previous) { $status.=&add_request_another_attempt_button(); }