Skip to content

Commit

Permalink
services: fix start button in case service is offline
Browse files Browse the repository at this point in the history
  • Loading branch information
fichtner committed Apr 13, 2015
1 parent 39c7e63 commit 431757f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/etc/inc/service-utils.inc
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,7 @@ if (!function_exists('get_service_control_links')) {
break;
default:
$output .= "<a href='status_services.php?mode=stopservice&amp;service={$service['name']}' class=\"btn btn-default\">";
break;
}
$output .= "<span data-toggle=\"tooltip\" data-placement=\"bottom\" title='" . sprintf(gettext("Stop %sService"),$stitle) . "' class=\"glyphicon glyphicon-stop\" />";
$output .= "</a>";
Expand All @@ -325,8 +326,8 @@ if (!function_exists('get_service_control_links')) {
$output .= "<a href='status_services.php?mode=startservice&amp;service={$service['name']}&amp;zone={$service['zone']}' class=\"btn btn-default\">";
break;
default:
if ($service_enabled)
$output .= "<a href='status_services.php?mode=startservice&amp;service={$service['name']}' class=\"btn btn-default\">";
$output .= "<a href='status_services.php?mode=startservice&amp;service={$service['name']}' class=\"btn btn-default\">";
break;
}
$output .= "<span data-toggle=\"tooltip\" data-placement=\"bottom\" title='" . sprintf(gettext("Start %sService"),$stitle) . "' alt='start' class=\"glyphicon glyphicon-play\"/></a>\n";
}
Expand Down

0 comments on commit 431757f

Please sign in to comment.