[LON-CAPA-cvs] cvs: loncom /interface lonaboutme.pm lontemplate.pm

ehlerst ehlerst@source.lon-capa.org
Wed, 17 Dec 2008 13:00:36 -0000


ehlerst		Wed Dec 17 13:00:36 2008 EDT

  Modified files:              
    /loncom/interface	lonaboutme.pm lontemplate.pm 
  Log:
  fixed the image link in lontemplate.pm.
  added an "Send message" link in lonaboutme.pm if no information is provided.
  
  
Index: loncom/interface/lonaboutme.pm
diff -u loncom/interface/lonaboutme.pm:1.87 loncom/interface/lonaboutme.pm:1.88
--- loncom/interface/lonaboutme.pm:1.87	Wed Dec 17 00:44:53 2008
+++ loncom/interface/lonaboutme.pm	Wed Dec 17 13:00:36 2008
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # "About Me" Personal Information
 #
-# $Id: lonaboutme.pm,v 1.87 2008/12/17 00:44:53 ehlerst Exp $
+# $Id: lonaboutme.pm,v 1.88 2008/12/17 13:00:36 ehlerst Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -342,6 +342,7 @@
        }
        if ($target ne 'tex') {$r->print('<br />');} else {$r->print('\\\\');}
     } else {
+	 &Apache::lontemplate::send_message($r,$cnum,$cdom);
        $r->print('<p>'.&mt('No personal information provided').'.</p>');
     }
 
Index: loncom/interface/lontemplate.pm
diff -u loncom/interface/lontemplate.pm:1.11 loncom/interface/lontemplate.pm:1.12
--- loncom/interface/lontemplate.pm:1.11	Wed Dec 17 10:57:01 2008
+++ loncom/interface/lontemplate.pm	Wed Dec 17 13:00:36 2008
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # "Template" Functions to generate html output
 #
-# $Id: lontemplate.pm,v 1.11 2008/12/17 10:57:01 ehlerst Exp $
+# $Id: lontemplate.pm,v 1.12 2008/12/17 13:00:36 ehlerst Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -105,8 +105,9 @@
 
 sub send_message{
 	my ($r,$cnum,$cdom) = @_;
+	my $image = qq{<img name="Send message" src="/res/adm/pages/com.png" border="none" />};
 	$r->print('<div>');
-	$r->print(&Apache::loncommon::messagewrapper(qq{<img name="sendMessage" src="/res/adm/pages/com.png"},$cnum,$cdom).' '.&mt('Send me a message'));
+	$r->print(&Apache::loncommon::messagewrapper($image,$cnum,$cdom).' '.&mt('Send me a message'));
 	$r->print('</div>');
 }