Commit df469d32 authored by Franco Fichtner's avatar Franco Fichtner

dashboard: do not arbitrarily split descriptions in services

PR: https://github.com/opnsense/core/issues/1277
parent 0ec85692
...@@ -82,11 +82,10 @@ if (isset($_POST['servicestatusfilter'])) { ...@@ -82,11 +82,10 @@ if (isset($_POST['servicestatusfilter'])) {
foreach ($services as $service): foreach ($services as $service):
if (!$service['name'] || in_array($service['name'], $skipservices)) { if (!$service['name'] || in_array($service['name'], $skipservices)) {
continue; continue;
} } ?>
$service_desc = explode(".", $service['description']);?>
<tr> <tr>
<td><?=$service['name'];?></td> <td><?=$service['name'];?></td>
<td><?=$service_desc[0];?></td> <td><?=$service['description'];?></td>
<td><?=str_replace('btn ', 'btn btn-xs ', get_service_status_icon($service, false, true));?> <td><?=str_replace('btn ', 'btn btn-xs ', get_service_status_icon($service, false, true));?>
<?=str_replace('btn ', 'btn btn-xs ', get_service_control_links($service));?> <?=str_replace('btn ', 'btn btn-xs ', get_service_control_links($service));?>
</td> </td>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment