Project

General

Profile

« Previous | Next » 

Revision 0adf0d88

Added by NOYB NOYB about 9 years ago

Status / Services - Status Indicator

Use status icon instead of text. Icon and title should be fine.

View differences:

src/usr/local/www/status_services.php
141 141
						<td>
142 142
							<?=$service['name']?>
143 143
						</td>
144

  
145 144
						<td>
146 145
							<?=$service['description']?>
147 146
						</td>
148
<?php
149
		// if service is running then listr else listbg
150
		$bgclass = null;
151
		$running = false;
152

  
153
		if (get_service_status($service)) {
154
			$running = true;
155
		}
156
?>
157 147
						<td>
158
							<?=$running ? '<span class="text-success">' . gettext("Running") . '</span>':'<span class="text-danger">' . gettext("Stopped") . '</span>'?>
148
							<?= get_service_status_icon($service, false, true, false, "state"); ?>
159 149
						</td>
160 150
						<td>
161 151
							<?=get_service_control_links($service)?>

Also available in: Unified diff