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

albertel lon-capa-cvs@mail.lon-capa.org
Thu, 29 Sep 2005 19:18:38 -0000


albertel		Thu Sep 29 15:18:38 2005 EDT

  Modified files:              
    /loncom/homework	bridgetask.pm 
  Log:
  - switch to start time
  
  
Index: loncom/homework/bridgetask.pm
diff -u loncom/homework/bridgetask.pm:1.54 loncom/homework/bridgetask.pm:1.55
--- loncom/homework/bridgetask.pm:1.54	Thu Sep 29 15:15:47 2005
+++ loncom/homework/bridgetask.pm	Thu Sep 29 15:18:37 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.54 2005/09/29 19:15:47 albertel Exp $
+# $Id: bridgetask.pm,v 1.55 2005/09/29 19:18:37 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -568,18 +568,19 @@
 		    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 $description=&Apache::slotrequest::get_description($Apache::inputtags::slot_name,\%slot);
+		    my $start_time=
+			&Apache::lonlocal::locallocaltime($slot{'starttime'});
 
 		    my $status;
 		    $status.="\n<div class='$bt_status'>\n";
 		    
 		    if ($bt_status eq 'pass')  {
 			$status.='<h2>You passed the '.$title.' given on '.
-			    $description.'.</h2>';
+			    $start_time.'.</h2>';
 		    }
 		    if ($bt_status eq 'fail')  {
 			$status.='<h2>You did not pass the '.$title.' given on '.
-			    $description.'.</h2>';
+			    $start_time.'.</h2>';
 			if (!$previous) {
 			    $status.=&add_request_another_attempt_button();
 			}