Kristan Kenney 5 лет назад
Родитель
Сommit
9bceab7c8f
2 измененных файлов с 9 добавлено и 1 удалено
  1. 1 0
      CHANGELOG.md
  2. 8 1
      web/templates/admin/list_services.html

+ 1 - 0
CHANGELOG.md

@@ -25,6 +25,7 @@ All notable changes to this project will be documented in this file.
 - Improved the quality of comment formatting in command line scripts - thanks **@bisubus**! 
 - Fixed an issue where the logo was not displayed in the File Manager - thanks **@robothemes**!
 - 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.
+- Improved the visibility of service availability in the Control Panel UI.
 
 ## [1.3.0] - Major Release (Feature / Quality Update)
 ### Features

+ 8 - 1
web/templates/admin/list_services.html

@@ -125,7 +125,14 @@
           <div class="clearfix l-unit__stat-col--left super-compact">
             <input id="check<?php echo $i ?>" class="ch-toggle" type="checkbox" name="service[]" value="<?php echo $key ?>">
           </div>
-          <div class="clearfix l-unit__stat-col--left wide-2"><b><a href="/edit/server/<? echo $key ?>/" title="<?=_('edit')?>: <?=$key?>"><?=$key?></a></b></div>
+          <div class="clearfix l-unit__stat-col--left wide-2">
+            <? if($data[$key]['STATE'] == 'running'){ ?>
+                <i class="fas fa-check-circle status-icon green icon-pad-right"></i>
+            <? } else {?>
+                <i class="fas fa-minus-circle status-icon red icon-pad-right"></i>
+            <? } ?>
+            <b><a href="/edit/server/<? echo $key ?>/" title="<?=_('edit')?>: <?=$key?>"><?=$key?></a></b>
+          </div>
           <div class="clearfix l-unit__stat-col--left text-center compact-2">
             <div class="actions-panel clearfix">
               <div class="actions-panel__col actions-panel__edit shortcut-enter" key-action="href">