--- loncom/homework/bridgetask.pm 2006/03/29 14:03:08 1.129 +++ loncom/homework/bridgetask.pm 2006/03/29 23:06:22 1.132 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # definition of tags that give a structure to a document # -# $Id: bridgetask.pm,v 1.129 2006/03/29 14:03:08 albertel Exp $ +# $Id: bridgetask.pm,v 1.132 2006/03/29 23:06:22 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -455,7 +455,11 @@ sub start_Task { my $files = '<ul>'; foreach my $file (@files) { my $url="/uploaded/$domain/$user/portfolio$file"; - $file = '<tt>'.$file.'</tt>'; + if (! &Apache::lonnet::stat_file($url)) { + $file = &mt('<font color="red"> Nonexistant file:</font> <tt>[_1]</tt>',$file); + } else { + $file = '<tt>'.$file.'</tt>'; + } $files .= '<li>'.$file.'</li>'; } $files.='</ul>'; @@ -970,7 +974,7 @@ DONEBUTTON &Apache::structuretags::finalize_storage(); } } elsif ($target eq 'webgrade') { - $result.="</div>\n<hr />"; + $result.="</div>"; #$result.='<input type="submit" name="next" value="'. # &mt('Save & Next').'" /> '; #$result.='<input type="submit" name="end" value="'. @@ -1873,7 +1877,7 @@ sub start_IntroParagraph { } elsif ($tagstack->[-2] eq 'Task' && $target eq 'webgrade') { &Apache::lonxml::startredirection(); } else { - &Apache:;lonxml::error("Invalid use of <IntroParagraph> inside of <".$tagstack->[-2].">"); + &Apache::lonxml::error("Invalid use of <IntroParagraph> inside of <".$tagstack->[-2].">"); &Apache::lonxml::get_all_text('/introparagraph',$parser,$style); }