[LON-CAPA-cvs] cvs: loncom /interface lonmenu.pm
raeburn
raeburn@source.lon-capa.org
Thu, 15 Oct 2009 21:02:13 -0000
raeburn Thu Oct 15 21:02:13 2009 EDT
Modified files:
/loncom/interface lonmenu.pm
Log:
- Bug 6089.
- Separator between inline menu buttons/icons and resource.
Index: loncom/interface/lonmenu.pm
diff -u loncom/interface/lonmenu.pm:1.287 loncom/interface/lonmenu.pm:1.288
--- loncom/interface/lonmenu.pm:1.287 Thu Oct 15 21:00:07 2009
+++ loncom/interface/lonmenu.pm Thu Oct 15 21:02:13 2009
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Routines to control the menu
#
-# $Id: lonmenu.pm,v 1.287 2009/10/15 21:00:07 raeburn Exp $
+# $Id: lonmenu.pm,v 1.288 2009/10/15 21:02:13 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -519,7 +519,7 @@
$newmail= 'swmenu.setstatus("you have","messages");';
}
- my $breadcrumb;
+ my ($breadcrumb,$separator);
if ($noremote
&& ($env{'request.symb'})
&& ($env{'request.course.id'})) {
@@ -543,6 +543,11 @@
Apache::lonhtmlcommon::clear_breadcrumbs();
Apache::lonhtmlcommon::add_breadcrumb(@crumbs);
$breadcrumb .= Apache::lonhtmlcommon::breadcrumbs(undef,undef,0);
+ unless (($env{'request.state'} eq 'edit') || ($newmail) ||
+ ($env{'request.state'} eq 'construct') ||
+ ($env{'form.register'})) {
+ $separator = &Apache::loncommon::head_subbox();
+ }
#
}
if ($env{'request.state'} eq 'construct') {
@@ -831,6 +836,7 @@
$inlinebuttons
$tableend
$newmail
+$separator
<script type="text/javascript">
// END LON-CAPA Internal
</script>