diff options
author | Hari <hari289@outlook.com> | 2015-09-15 16:24:01 +0530 |
---|---|---|
committer | Hari <hari289@outlook.com> | 2015-09-15 16:24:01 +0530 |
commit | 9f605c1c305b124e7694c17f6d6689e3008b11d0 (patch) | |
tree | 0e141c9f3ce7f2e97e00822d66b92a8475408662 /src/etc/inc | |
parent | fa43d464f119abe586012406a4dabd120348d6c4 (diff) | |
download | pfsense-9f605c1c305b124e7694c17f6d6689e3008b11d0.zip pfsense-9f605c1c305b124e7694c17f6d6689e3008b11d0.tar.gz |
Used bootstrap progress bar for queues' stats and used glyphicons
Diffstat (limited to 'src/etc/inc')
-rw-r--r-- | src/etc/inc/service-utils.inc | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/etc/inc/service-utils.inc b/src/etc/inc/service-utils.inc index 8d0e537..35cb470 100644 --- a/src/etc/inc/service-utils.inc +++ b/src/etc/inc/service-utils.inc @@ -464,20 +464,20 @@ function get_service_status_icon($service, $withtext = true, $smallicon = false) $output = ""; if (get_service_status($service)) { $statustext = gettext("Running"); - $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\" /> "; + $output .= "<a title=\"" . sprintf(gettext("%s Service is"), $service["name"]) . " {$statustext}\" ><i class=\""; + $output .= ($smallicon) ? "icon icon-play" : "icon icon-large icon-play"; + $output .= "\" ></i></a>"; if ($withtext) { $output .= " " . $statustext; } } else { $service_enabled = is_service_enabled($service['name']); $statustext = ($service_enabled) ? gettext("Stopped") : gettext("Disabled"); - $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\" /> "; + $output .= "<a title=\"" . sprintf(gettext("%s Service is"), $service["name"]) . " {$statustext}\" ><i class=\""; + $output .= ($smallicon) ? "icon icon-remove" : "icon icon-large icon-remove"; + $output .= "\" ></i></a>"; if ($withtext) { - $output .= " <font color=\"white\">{$statustext}</font>"; + $output .= " " . $statustext; } } return $output; @@ -490,10 +490,10 @@ function get_service_control_links($service, $addname = false) { switch ($service['name']) { case "openvpn": - $link = '<a title="%s" href="status_services.php?mode=%s&service='.$service['name'].'.&vpnmode='.$service['mode'].'.&id='.$service['vpnid'].'">'; + $link = '<a title="%s" href="status_services.php?mode=%s&service='.$service['name'].'&vpnmode='.$service['mode'].'&id='.$service['vpnid'].'">'; break; case "captiveportal": - $link = '<a title="%s" href="status_services.php?mode=%s&service='.$service['name'].'.&zone='.$service['zone'].'">'; + $link = '<a title="%s" href="status_services.php?mode=%s&service='.$service['name'].'&zone='.$service['zone'].'">'; break; default: $link = '<a title="%s" href="status_services.php?mode=%s&service='.$service['name'].'">'; |