--- loncom/homework/bridgetask.pm 2006/03/28 19:55:43 1.122 +++ loncom/homework/bridgetask.pm 2006/03/28 21:06:00 1.124 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # definition of tags that give a structure to a document # -# $Id: bridgetask.pm,v 1.122 2006/03/28 19:55:43 albertel Exp $ +# $Id: bridgetask.pm,v 1.124 2006/03/28 21:06:00 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -213,6 +213,7 @@ sub add_grading_button { 'gradinguser', 'gradingdomain'); $result.=&Apache::loncommon::studentbrowser_javascript(); + $result.= '

'; } return $result; } @@ -429,6 +430,13 @@ sub start_Task { &Apache::structuretags::page_start($target,$token,$tagstack,$parstack,$parser,$safeeval); $body_tag_start .= '
'."\n"; + + if ($target eq 'web' || $target eq 'webgrade') { + $head_tag_start.=''. + &Apache::structuretags::get_resource_name($parstack,$safeeval). + ''; + } + if ($target eq 'web' && $env{'request.state'} ne 'construct') { if ($Apache::lonhomework::modifygrades) { $body_tag_start.='
$name + $result.="$head_tag_start $body_tag_start \n".&style(); $result.=&preserve_grade_info(); @@ -552,7 +559,11 @@ DONESCREEN $target eq 'webgrade') { my $webgrade='yes'; if ($target eq 'webgrade') { - $result.=$head_tag_start.''.$body_tag_start; + $result.=$head_tag_start. + ''.$body_tag_start. + "\n".'
'."\n". + ''; #$result.='
Review'.&show_queue('reviewqueue'); #$result.='
Grade'.&show_queue('gradingqueue'); } @@ -1021,7 +1032,7 @@ DONEBUTTON # &mt('Throw Away & Stop Grading').'" /> '; #$result.=' '; - $result.=''."\n
\n". + $result.=''."\n
\n\n". &Apache::loncommon::endbodytag().''; } elsif ($target eq 'meta') { $result.=&Apache::response::meta_package_write('Task');