--- loncom/interface/domainstatus.pm 2013/02/02 00:22:51 1.5
+++ loncom/interface/domainstatus.pm 2016/07/25 19:50:30 1.8
@@ -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.8 2016/07/25 19:50:30 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;
@@ -145,6 +145,15 @@ sub servermenu_items {
linktitle => $titles->{'clusterstatus'},
},
{
+ linktext => $linknames->{'certstatus'},
+ icon => '',
+ alttext => '',
+ #help => 'Domain_Coordination_Apache_Status',
+ url => '/cgi-bin/loncertstatus.pl',
+ permission => $candisplay->{'certstatus'},
+ linktitle => $titles->{'certstatus'},
+ },
+ {
linktext => $linknames->{'codeversions'},
icon => '',
alttext => '',
@@ -163,6 +172,24 @@ sub servermenu_items {
linktitle => $titles->{'checksums'},
},
{
+ linktext => $linknames->{'diskusage'},
+ icon => '',
+ alttext => '',
+ #help => 'Domain_Coordination_Disk_Usage',
+ url => '/cgi-bin/quotacheck.pl?domain='.$dom,
+ permission => $candisplay->{'diskusage'},
+ linktitle => $titles->{'diskusage'},
+ },
+ {
+ 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 => '',
@@ -231,10 +258,13 @@ sub serverstatus_links {
'lonstatus' => 'Connection Status',
'server-status' => 'Apache Server Status',
'clusterstatus' => 'Domain Status',
+ 'certstatus' => 'LON-CAPA SSL Certificates Status',
'codeversions' => 'LON-CAPA Modules',
'checksums' => 'Check for LON-CAPA Module changes',
+ 'diskusage' => 'Display quotas and usage for Course/Community Content',
'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',