summaryrefslogtreecommitdiffstats
path: root/usr/local/www/status_services.php
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2012-08-15 22:18:53 -0400
committerjim-p <jimp@pfsense.org>2012-08-15 22:18:53 -0400
commit391abfcfe42a1156d252e30d049fbafc47dcf790 (patch)
tree8cba703b3084e44eefe3a079fc85490919168e21 /usr/local/www/status_services.php
parent7468a29fa001983f0e4cc5656c4d6af294894edc (diff)
downloadpfsense-391abfcfe42a1156d252e30d049fbafc47dcf790.zip
pfsense-391abfcfe42a1156d252e30d049fbafc47dcf790.tar.gz
Extend the shortcuts code and link back from Status > Services also.
Diffstat (limited to 'usr/local/www/status_services.php')
-rwxr-xr-xusr/local/www/status_services.php11
1 files changed, 8 insertions, 3 deletions
diff --git a/usr/local/www/status_services.php b/usr/local/www/status_services.php
index 84c1e4e..0bcb45f 100755
--- a/usr/local/www/status_services.php
+++ b/usr/local/www/status_services.php
@@ -247,7 +247,6 @@ include("fbegin.inc");
$services = get_services();
-
if (count($services) > 0) {
uasort($services, "service_name_compare");
foreach($services as $service) {
@@ -255,11 +254,17 @@ if (count($services) > 0) {
continue;
if (empty($service['description']))
$service['description'] = get_pkg_descr($service['name']);
- echo '<tr><td class="listlr">' . $service['name'] . '</td>' . "\n";
- echo '<td class="listr">' . $service['description'] . '</td>' . "\n";
+ echo '<tr><td class="listlr" width="20%">' . $service['name'] . '</td>' . "\n";
+ echo '<td class="listr" width="55%">' . $service['description'] . '</td>' . "\n";
echo get_service_status_icon($service, true, true);
echo '<td valign="middle" class="list" nowrap>';
echo get_service_control_links($service);
+ $scut = get_shortcut_by_service_name($service['name']);
+ if (!empty($scut)) {
+ echo get_shortcut_main_link($scut, true, $service);
+ echo get_shortcut_status_link($scut, true, $service);
+ echo get_shortcut_log_link($scut, true);
+ }
echo "</td></tr>\n";
}
} else {
OpenPOWER on IntegriCloud