[LON-CAPA-cvs] cvs: loncom(GCI_3) /interface lonnavmaps.pm
raeburn
raeburn@source.lon-capa.org
Mon, 15 Nov 2010 22:46:47 -0000
raeburn Mon Nov 15 22:46:47 2010 EDT
Modified files: (Branch: GCI_3)
/loncom/interface lonnavmaps.pm
Log:
- Customization for GCI_3
- Include clickable icon to display menu in main window when using pop-up
navigation window.
Index: loncom/interface/lonnavmaps.pm
diff -u loncom/interface/lonnavmaps.pm:1.440.2.2 loncom/interface/lonnavmaps.pm:1.440.2.3
--- loncom/interface/lonnavmaps.pm:1.440.2.2 Mon Sep 13 03:07:56 2010
+++ loncom/interface/lonnavmaps.pm Mon Nov 15 22:46:47 2010
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Navigate Maps Handler
#
-# $Id: lonnavmaps.pm,v 1.440.2.2 2010/09/13 03:07:56 raeburn Exp $
+# $Id: lonnavmaps.pm,v 1.440.2.3 2010/11/15 22:46:47 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
@@ -1496,12 +1496,7 @@
if ($args->{'caller'} eq 'navmapsdisplay') {
$result .= '<table><tr><td>'.
- &Apache::loncommon::help_open_menu('Navigation Screen','Navigation_Screen',undef,'RAT').'</td>';
- if ($env{'environment.remotenavmap'} ne 'on') {
- $result .= '<td> </td>';
- } else {
- $result .= '</tr><tr>';
- }
+ &Apache::loncommon::help_open_menu('Navigation Screen','Navigation_Screen',undef,'RAT').'</td><td> </td>';
$result.="<td class=\"LC_middle\">".mt('Tools:')."</td>";
$result.=&show_linkitems_toolbar($args->{'linkitems'});
if ($args->{'sort_html'}) {
@@ -1509,7 +1504,7 @@
$result.='<td> </td><td> </td><td> </td>'.
'<td align="right">'.$args->{'sort_html'}.'</td></tr>';
} else {
- $result.='</tr><tr><td align="left"><br />'.
+ $result.='</tr><tr><td align="left" colspan="4"><br />'.
$args->{'sort_html'}.'</td></tr>';
}
}
@@ -1892,7 +1887,7 @@
my $result .='
<td align="left">
<span class="LC_nobreak">'."\n<ul id=\"LC_toolbar\">";
- foreach my $link (@linkorder) {
+ foreach my $link (@linkorder) {
my $link_id = "LC_content_toolbar_".$link;
if (defined($linkitems->{$link})) {
if ($linkitems->{$link}{'text'} ne '') {
@@ -1912,6 +1907,14 @@
}
}
}
+ if ($env{'environment.remotenavmap'} eq 'on') {
+ if (&Apache::loncommon::needs_gci_custom()) {
+ if ($env{'request.course.id'} &&
+ &Apache::lonnet::allowed('mdc',$env{'request.course.id'})) {
+ $result .= '<li><a target="loncapaclient" href="/adm/menu" id="LC_content_toolbar_management" class="LC_toolbarItem" title="'.&mt('Test Management').'" /></a></li>';
+ }
+ }
+ }
$result .= '</ul>';
$result .= ' </span></td>'."\n";