diff options
author | Renato Botelho <garga@pfSense.org> | 2014-01-27 02:10:45 -0800 |
---|---|---|
committer | Renato Botelho <garga@pfSense.org> | 2014-01-27 02:10:45 -0800 |
commit | 2704796a212d5d58e87b8c02c0e2a097a4aea6fb (patch) | |
tree | c12d8732791bbceedf0ac1d4a8a965cad94e5113 /etc/inc/service-utils.inc | |
parent | 8467c588e48965a412e2a146b1fd033c3a4d7ea2 (diff) | |
parent | 30469c9b0c34c3353401363dd59d4b6d2551a7cd (diff) | |
download | pfsense-2704796a212d5d58e87b8c02c0e2a097a4aea6fb.zip pfsense-2704796a212d5d58e87b8c02c0e2a097a4aea6fb.tar.gz |
Merge pull request #893 from N0YB/RELENG_2_1
The service status icon is not always in a table.
Diffstat (limited to 'etc/inc/service-utils.inc')
-rw-r--r-- | etc/inc/service-utils.inc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/etc/inc/service-utils.inc b/etc/inc/service-utils.inc index 4547a53..a1dbf31 100644 --- a/etc/inc/service-utils.inc +++ b/etc/inc/service-utils.inc @@ -442,23 +442,21 @@ function get_service_status_icon($service, $withtext = true, $smallicon = false) $output = ""; if(get_service_status($service)) { $statustext = gettext("Running"); - $output .= '<td class="listr" align="center">' . "\n"; $output .= "<img style=\"vertical-align:middle\" title=\"" . sprintf(gettext("%s Service is"),$service["name"]) . " {$statustext}\" src=\"/themes/" . $g["theme"] . "/images/icons/"; $output .= ($smallicon) ? "icon_pass.gif" : "icon_service_running.gif"; $output .= "\" alt=\"status\" />"; if ($withtext) $output .= " " . $statustext; - $output .= "</td>\n"; + $output .= "\n"; } else { $service_enabled = is_service_enabled($service['name']); $statustext = ($service_enabled) ? gettext("Stopped") : gettext("Disabled"); - $output .= '<td class="listbg" align="center">' . "\n"; $output .= "<img style=\"vertical-align:middle\" title=\"" . sprintf(gettext("%s Service is"),$service["name"]) . " {$statustext}\" src=\"/themes/" . $g["theme"] . "/images/icons/"; $output .= ($smallicon) ? "icon_block.gif" : "icon_service_stopped.gif"; $output .= "\" alt=\"status\" />"; if ($withtext) $output .= " " . "<font color=\"white\">{$statustext}</font>"; - $output .= "</td>\n"; + $output .= "\n"; } return $output; } |