--- loncom/interface/domainstatus.pm 2013/02/02 00:22:51 1.5
+++ loncom/interface/domainstatus.pm 2014/01/01 17:41:47 1.6
@@ -2,7 +2,7 @@
# Generate a menu page containing links to server status pages accessible
# to user.
#
-# $Id: domainstatus.pm,v 1.5 2013/02/02 00:22:51 raeburn Exp $
+# $Id: domainstatus.pm,v 1.6 2014/01/01 17:41:47 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -78,7 +78,7 @@ sub handler {
if (keys(%candisplay) > 0) {
$r->print('
'.&mt('Server Utilities for Domain: [_1]',''.$domdesc.'').
- '
'.&print_status_menu(\%candisplay));
+ ''.&print_status_menu(\%candisplay,$dom));
} else {
$r->print(
''.&mt('No information available').'
'
@@ -93,14 +93,14 @@ sub handler {
}
sub print_status_menu {
- my ($candisplay) = @_;
+ my ($candisplay,$dom) = @_;
return '' if (ref($candisplay) ne 'HASH');
return &Apache::lonhtmlcommon::generate_menu(
- &servermenu_items($candisplay));
+ &servermenu_items($candisplay,$dom));
}
sub servermenu_items {
- my ($candisplay) = @_;
+ my ($candisplay,$dom) = @_;
my $titles = &LONCAPA::lonauthcgi::serverstatus_titles();
my $linknames = &serverstatus_links();
my @menu;
@@ -163,6 +163,15 @@ sub servermenu_items {
linktitle => $titles->{'checksums'},
},
{
+ linktext => $linknames->{'uniquecodes'},
+ icon => '',
+ alttext => '',
+ #help => 'Domain_Coordination_Uniquecodes',
+ url => '/cgi-bin/listcodes.pl?domain='.$dom.'&format=html',
+ permission => $candisplay->{'uniquecodes'},
+ linktitle => $titles->{'uniquecodes'},
+ },
+ {
linktext => $linknames->{'showenv'},
icon => '',
alttext => '',
@@ -235,6 +244,7 @@ sub serverstatus_links {
'checksums' => 'Check for LON-CAPA Module changes',
'showenv' => 'User Environment for current log-in',
'loncron' => 'Update Connections and Refresh Status Information',
+ 'uniquecodes' => "List Domain's Courses with Assigned Six Character codes",
'takeoffline' => 'Replace log-in page with offline notice',
'takeonline' => 'Replace offline notice with log-in page',
'metadata_keywords' => 'Display Metadata Keywords',