[LON-CAPA-cvs] cvs: loncom /interface lonmenu.pm
kaisler
kaisler@source.lon-capa.org
Sun, 29 Mar 2009 20:10:37 -0000
kaisler Sun Mar 29 20:10:37 2009 EDT
Modified files:
/loncom/interface lonmenu.pm
Log:
Add display for new Messages in the toplevel menue
Index: loncom/interface/lonmenu.pm
diff -u loncom/interface/lonmenu.pm:1.255 loncom/interface/lonmenu.pm:1.256
--- loncom/interface/lonmenu.pm:1.255 Fri Mar 13 15:12:02 2009
+++ loncom/interface/lonmenu.pm Sun Mar 29 20:10:37 2009
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Routines to control the menu
#
-# $Id: lonmenu.pm,v 1.255 2009/03/13 15:12:02 bisitz Exp $
+# $Id: lonmenu.pm,v 1.256 2009/03/29 20:10:37 kaisler Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -348,6 +348,12 @@
my $form=&serverform();
my $utility=&utilityfunctions();
+ my $messagelink = "";
+ if(&Apache::lonmsg::mynewmail()){
+ $messagelink = '<a href="javascript:go(\'/adm/communicate\');">Message(new)</a>'
+ }else{
+ $messagelink = '<a href="javascript:go(\'/adm/communicate\');">Message</a>'
+ }
my $helplink=&Apache::loncommon::top_nav_help('Help');
return (<<ENDINLINEMENU);
<script type="text/javascript">
@@ -358,7 +364,7 @@
</script>
<ol class="LC_smallMenu LC_right">
<li>$logo</li>
- <li><a href="javascript:go('/adm/communicate');">Message</a></li>
+ <li>$messagelink</li>
<li>$roles</li>
<li>$helplink</li>
<li><a href="/adm/logout" target="_top">$lt{'exit'}</a></li>