summaryrefslogtreecommitdiffstats
path: root/src/etc/inc
diff options
context:
space:
mode:
authorHari <hari289@outlook.com>2015-09-15 16:24:01 +0530
committerHari <hari289@outlook.com>2015-09-15 16:24:01 +0530
commit9f605c1c305b124e7694c17f6d6689e3008b11d0 (patch)
tree0e141c9f3ce7f2e97e00822d66b92a8475408662 /src/etc/inc
parentfa43d464f119abe586012406a4dabd120348d6c4 (diff)
downloadpfsense-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.inc18
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\" />&nbsp;";
+ $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 .= "&nbsp;" . $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\" />&nbsp;";
+ $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 .= "&nbsp;<font color=\"white\">{$statustext}</font>";
+ $output .= "&nbsp;" . $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&amp;service='.$service['name'].'.&amp;vpnmode='.$service['mode'].'.&amp;id='.$service['vpnid'].'">';
+ $link = '<a title="%s" href="status_services.php?mode=%s&amp;service='.$service['name'].'&amp;vpnmode='.$service['mode'].'&amp;id='.$service['vpnid'].'">';
break;
case "captiveportal":
- $link = '<a title="%s" href="status_services.php?mode=%s&amp;service='.$service['name'].'.&amp;zone='.$service['zone'].'">';
+ $link = '<a title="%s" href="status_services.php?mode=%s&amp;service='.$service['name'].'&amp;zone='.$service['zone'].'">';
break;
default:
$link = '<a title="%s" href="status_services.php?mode=%s&amp;service='.$service['name'].'">';
OpenPOWER on IntegriCloud