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

banghart lon-capa-cvs@mail.lon-capa.org
Tue, 27 Jun 2006 01:39:10 -0000


banghart		Mon Jun 26 21:39:10 2006 EDT

  Modified files:              
    /loncom/homework	grades.pm 
  Log:
  	Bug 4817, point #6. Now the message contains a link to the handed
  	back file.
  
  
Index: loncom/homework/grades.pm
diff -u loncom/homework/grades.pm:1.364 loncom/homework/grades.pm:1.365
--- loncom/homework/grades.pm:1.364	Wed Jun 21 16:18:43 2006
+++ loncom/homework/grades.pm	Mon Jun 26 21:39:09 2006
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # The LON-CAPA Grading handler
 #
-# $Id: grades.pm,v 1.364 2006/06/21 20:18:43 banghart Exp $
+# $Id: grades.pm,v 1.365 2006/06/27 01:39:09 banghart Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -2465,7 +2465,7 @@
                         my $subject = "File Handed Back by Instructor ";
                         my $message = "A file has been returned that was originally submitted in reponse to: <br />";
                         $message .= "<strong>".&Apache::lonnet::gettitle($symb)."</strong><br />";
-                        $message .= " The returned file is named: <br /><strong>".$save_file_name."</strong><br />";
+                        $message .= ' The returned file is named: <br /><strong><a href="/uploaded/'."$domain/$stuname/".$save_file_name.'">'.$save_file_name."</a></strong><br />";
                         $message .= " and can be found in your portfolio space.";
 			my $url = (&Apache::lonnet::decode_symb($symb))[2];
 			$url = &Apache::lonnet::declutter($url);