[LON-CAPA-cvs] cvs: loncom /homework inputtags.pm
albertel
lon-capa-cvs@mail.lon-capa.org
Fri, 30 Jun 2006 00:32:26 -0000
albertel Thu Jun 29 20:32:26 2006 EDT
Modified files:
/loncom/homework inputtags.pm
Log:
- message on problem now lists the filename
- message on problem lists all handed back file BUG#4817 point 7
Index: loncom/homework/inputtags.pm
diff -u loncom/homework/inputtags.pm:1.197 loncom/homework/inputtags.pm:1.198
--- loncom/homework/inputtags.pm:1.197 Thu Jun 29 18:57:39 2006
+++ loncom/homework/inputtags.pm Thu Jun 29 20:32:25 2006
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# input definitons
#
-# $Id: inputtags.pm,v 1.197 2006/06/29 22:57:39 albertel Exp $
+# $Id: inputtags.pm,v 1.198 2006/06/30 00:32:25 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -720,10 +720,16 @@
}
my (undef,undef,$domain,$user)=&Apache::lonxml::whichuser();
foreach my $resid(@Apache::inputtags::response){
- &Apache::lonnet::logthis("handback is ".$Apache::lonhomework::history{"resource.$part.$resid.handback"});
if ($Apache::lonhomework::history{"resource.$part.$resid.handback"}) {
- $message.= '<br /><a href="/uploaded/'."$domain/$user".'/'.$Apache::lonhomework::history{"resource.$part.$resid.handback"}.'">Returned File</a>';
- }
+ $message.='<br />';
+ my @files = split(/\s*,\s*/,
+ $Apache::lonhomework::history{"resource.$part.$resid.handback"});
+ my $file_msg;
+ foreach my $file (@files) {
+ $file_msg.= '<br /><a href="/uploaded/'."$domain/$user".'/'.$file.'">'.$file.'</a>';
+ }
+ $message .= &mt('Returned file(s): [_1]',$file_msg);
+ }
}
if (lc($Apache::lonhomework::problemstatus) eq 'no' &&