diff options
author | Stephen Beaver <sbeaver@netgate.com> | 2016-04-18 15:15:03 -0400 |
---|---|---|
committer | Stephen Beaver <sbeaver@netgate.com> | 2016-04-18 15:15:03 -0400 |
commit | 4916343f521337f5979d4716ec8fdeed75cace45 (patch) | |
tree | 7122f3c2a0c162b8dde8ae58389e2e0805f8f43e /src/usr/local | |
parent | 7f30df9a2d3ffca0ae32999b25aa2fe1b2265c6a (diff) | |
download | pfsense-4916343f521337f5979d4716ec8fdeed75cace45.zip pfsense-4916343f521337f5979d4716ec8fdeed75cace45.tar.gz |
Update widget to POST link
Diffstat (limited to 'src/usr/local')
-rw-r--r-- | src/usr/local/www/widgets/widgets/services_status.widget.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/usr/local/www/widgets/widgets/services_status.widget.php b/src/usr/local/www/widgets/widgets/services_status.widget.php index 7e1d883..a6b065c 100644 --- a/src/usr/local/www/widgets/widgets/services_status.widget.php +++ b/src/usr/local/www/widgets/widgets/services_status.widget.php @@ -78,7 +78,7 @@ for ($idx=1; $idx < $numsvcs; $idx++) { for ($chk = $idx +1, $sfx=2; $chk <$numsvcs; $chk++) { if ($services[$chk]['dispname'] == $name) { $services[$chk]['dispname'] .= '_' . $sfx++; - } + } } } @@ -116,20 +116,23 @@ $skipservices = explode(",", $config['widgets']['servicestatusfilter']); if (count($services) > 0) { uasort($services, "service_dispname_compare"); + foreach ($services as $service) { if ((!$service['dispname']) || (in_array($service['dispname'], $skipservices)) || (!is_service_enabled($service['dispname']))) { continue; } + if (empty($service['description'])) { $service['description'] = get_pkg_descr($service['name']); } + $service_desc = explode(".",$service['description']); ?> <tr> <td><i class="fa fa-<?=get_service_status($service) ? 'check-circle text-success' : 'times-circle text-warning'?>"></i></td> <td><?=$service['dispname']?></td> <td><?=$service_desc[0]?></td> - <td><?=get_service_control_GET_links($service)?></td> + <td><?=get_service_control_links($service)?></td> </tr> <?php } @@ -149,7 +152,7 @@ if (count($services) > 0) { <div class="col-sm-6"> <select multiple id="servicestatusfilter" name="servicestatusfilter[]" class="form-control"> <?php - foreach ($services as $service): + foreach ($services as $service): if (!empty(trim($service['dispname'])) || is_numeric($service['dispname'])) { ?> <option <?=(in_array($service['dispname'], $skipservices)?'selected':'')?>><?=$service['dispname']?></option> |