Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
34f8895
commit 2cfed82
Showing
12 changed files
with
124 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,36 @@ | ||
<?php | ||
$devIcons = array( | ||
array( | ||
'name' => 'Status', | ||
'description' => 'Check on the health of your setup', | ||
'icon' => '/server_status/img/icon.png', | ||
'author' => 'Infinitas', | ||
'dashboard' => array('plugin' => 'server_status', 'controller' => 'server_status', 'action' => 'status'), | ||
), | ||
array( | ||
'name' => 'Php', | ||
'description' => 'See and manage your Php configuration', | ||
'icon' => '/server_status/img/php.png', | ||
'author' => 'Infinitas', | ||
'dashboard' => array('plugin' => 'server_status', 'controller' => 'php', 'action' => 'info'), | ||
), | ||
array( | ||
'name' => 'MySQL', | ||
'description' => 'Information regarding the MySQL server currently running', | ||
'icon' => '/server_status/img/mysql.png', | ||
'author' => 'Infinitas', | ||
'dashboard' => array('plugin' => 'server_status', 'controller' => 'databases', 'action' => 'mysql'), | ||
), | ||
array( | ||
'name' => 'Cache', | ||
'description' => 'Clear all cached data', | ||
'icon' => '/server_status/img/cache.png', | ||
'author' => 'Infinitas', | ||
'dashboard' => array('plugin' => 'server_status', 'controller' => 'server_status', 'action' => 'cache_status'), | ||
) | ||
); | ||
?> | ||
<div class="dashboard grid_16"> | ||
<h1><?php echo __('Manage your server'); ?></h1> | ||
<ul class="icons"><li><?php echo implode('</li><li>', current((array)$this->Menu->builDashboardLinks($devIcons, 'server_status'))); ?></li></ul> | ||
</div> | ||
$devIcons = array( | ||
array( | ||
'name' => 'Status', | ||
'description' => 'Check on the health of your setup', | ||
'icon' => '/server_status/img/icon.png', | ||
'author' => 'Infinitas', | ||
'dashboard' => array('controller' => 'server_status', 'action' => 'status'), | ||
), | ||
array( | ||
'name' => 'Php', | ||
'description' => 'See and manage your Php configuration', | ||
'icon' => '/server_status/img/php.png', | ||
'author' => 'Infinitas', | ||
'dashboard' => array('controller' => 'php', 'action' => 'info'), | ||
), | ||
array( | ||
'name' => 'MySQL', | ||
'description' => 'Information regarding the MySQL server currently running', | ||
'icon' => '/server_status/img/mysql.png', | ||
'author' => 'Infinitas', | ||
'dashboard' => array('controller' => 'databases', 'action' => 'mysql'), | ||
), | ||
array( | ||
'name' => 'Cache', | ||
'description' => 'Clear all cached data', | ||
'icon' => '/server_status/img/cache.png', | ||
'author' => 'Infinitas', | ||
'dashboard' => array('controller' => 'server_status', 'action' => 'cache_status'), | ||
) | ||
); | ||
|
||
echo $this->Html->tag('div', implode('', array( | ||
$this->Html->tag('h1', __d('server_status', 'Manage your server')), | ||
$this->Design->arrayToList(current((array)$this->Menu->builDashboardLinks($devIcons, 'server_status')), array('ul' => 'icons')) | ||
)), array('class' => 'dashboard')); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
<?php | ||
echo $this->ModuleLoader->loadDirect('ServerStatus.current', array('current' => $current)); | ||
echo $this->ModuleLoader->loadDirect('ServerStatus.all_time', array('allTime' => $allTime)); | ||
echo $this->ModuleLoader->loadDirect('ServerStatus.last_two_weeks', array('lastTwoWeeks' => $lastTwoWeeks)); | ||
echo $this->ModuleLoader->loadDirect('ServerStatus.last_six_months', array('lastSixMonths' => $lastSixMonths)); | ||
echo $this->ModuleLoader->loadDirect('ServerStatus.by_hour', array('byHour' => $byHour)); | ||
echo $this->ModuleLoader->loadDirect('ServerStatus.by_day', array('byDay' => $byDay)); | ||
echo $this->Html->tag('div', implode('', array( | ||
$this->ModuleLoader->loadDirect('ServerStatus.current', array('current' => $current)), | ||
$this->ModuleLoader->loadDirect('ServerStatus.all_time', array('allTime' => $allTime)), | ||
$this->ModuleLoader->loadDirect('ServerStatus.last_two_weeks', array('lastTwoWeeks' => $lastTwoWeeks)), | ||
$this->ModuleLoader->loadDirect('ServerStatus.last_six_months', array('lastSixMonths' => $lastSixMonths)), | ||
$this->ModuleLoader->loadDirect('ServerStatus.by_hour', array('byHour' => $byHour)), | ||
$this->ModuleLoader->loadDirect('ServerStatus.by_day', array('byDay' => $byDay)) | ||
)), array('class' => 'row-fluid')); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
$(document).ready(function() { | ||
$('.server_status.admin_info').prepend('<div class="tags"></div>'); | ||
var a = $('h1.no-gap a'), | ||
tags = [], | ||
$tags = $('.server_status.admin_info .tags'); | ||
|
||
$.each(a, function(k, v) { | ||
v = $(v); | ||
var data = { | ||
anchor: v.attr('name'), | ||
value: v.html() | ||
}; | ||
tags.push(data); | ||
|
||
v.parent().attr('id', data.anchor); | ||
$tags.append('<a href="#' + data.anchor + '" class="btn">' + data.value + '</a>') | ||
}); | ||
}); |