Skip to content

Commit 9bceab7

Browse files
author
Kristan Kenney
committed
Add service status icons
1 parent c7bf295 commit 9bceab7

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ All notable changes to this project will be documented in this file.
2525
- Improved the quality of comment formatting in command line scripts - thanks **@bisubus**!
2626
- Fixed an issue where the logo was not displayed in the File Manager - thanks **@robothemes**!
2727
- Fixed an issue in the Control Panel UI which caused databases and additional FTP accounts to be named incorrectly if manually prefaced with the username.
28+
- Improved the visibility of service availability in the Control Panel UI.
2829

2930
## [1.3.0] - Major Release (Feature / Quality Update)
3031
### Features

web/templates/admin/list_services.html

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,14 @@
125125
<div class="clearfix l-unit__stat-col--left super-compact">
126126
<input id="check<?php echo $i ?>" class="ch-toggle" type="checkbox" name="service[]" value="<?php echo $key ?>">
127127
</div>
128-
<div class="clearfix l-unit__stat-col--left wide-2"><b><a href="/edit/server/<? echo $key ?>/" title="<?=_('edit')?>: <?=$key?>"><?=$key?></a></b></div>
128+
<div class="clearfix l-unit__stat-col--left wide-2">
129+
<? if($data[$key]['STATE'] == 'running'){ ?>
130+
<i class="fas fa-check-circle status-icon green icon-pad-right"></i>
131+
<? } else {?>
132+
<i class="fas fa-minus-circle status-icon red icon-pad-right"></i>
133+
<? } ?>
134+
<b><a href="/edit/server/<? echo $key ?>/" title="<?=_('edit')?>: <?=$key?>"><?=$key?></a></b>
135+
</div>
129136
<div class="clearfix l-unit__stat-col--left text-center compact-2">
130137
<div class="actions-panel clearfix">
131138
<div class="actions-panel__col actions-panel__edit shortcut-enter" key-action="href">

0 commit comments

Comments
 (0)