mirror of
https://github.com/nextcloud/all-in-one.git
synced 2024-12-28 01:31:06 +08:00
simplify syntax to make it better understandable
Signed-off-by: szaimen <szaimen@e.mail.de>
This commit is contained in:
parent
83ae27ef76
commit
ead69baae3
1 changed files with 3 additions and 3 deletions
|
@ -28,10 +28,10 @@
|
||||||
{% set isApacheStarting = false %}
|
{% set isApacheStarting = false %}
|
||||||
|
|
||||||
{% for container in containers %}
|
{% for container in containers %}
|
||||||
{% if class(container.GetRunningState()) == 'AIO\\Container\\State\\RunningState' and container.GetIdentifier() != 'nextcloud-aio-domaincheck' and container.GetIdentifier() != 'nextcloud-aio-borgbackup' and container.GetIdentifier() != 'nextcloud-aio-watchtower' %}
|
{% if container.GetIdentifier() not in ['nextcloud-aio-domaincheck', 'nextcloud-aio-borgbackup', 'nextcloud-aio-watchtower'] and class(container.GetRunningState()) == 'AIO\\Container\\State\\RunningState' %}
|
||||||
{% set isAnyRunning = true %}
|
{% set isAnyRunning = true %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if ( container.GetIdentifier() starts with 'nextcloud-aio-redis' or container.GetIdentifier() starts with 'nextcloud-aio-database' or container.GetIdentifier() starts with 'nextcloud-aio-nextcloud' or container.GetIdentifier() starts with 'nextcloud-aio-apache' ) and class(container.GetRestartingState()) == 'AIO\\Container\\State\\RestartingState' %}
|
{% if container.GetIdentifier() in ['nextcloud-aio-redis', 'nextcloud-aio-database', 'nextcloud-aio-nextcloud', 'nextcloud-aio-apache'] and class(container.GetRestartingState()) == 'AIO\\Container\\State\\RestartingState' %}
|
||||||
{% set isAnyRestarting = true %}
|
{% set isAnyRestarting = true %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if container.GetIdentifier() == 'nextcloud-aio-watchtower' and class(container.GetRunningState()) == 'AIO\\Container\\State\\RunningState' %}
|
{% if container.GetIdentifier() == 'nextcloud-aio-watchtower' and class(container.GetRunningState()) == 'AIO\\Container\\State\\RunningState' %}
|
||||||
|
@ -105,7 +105,7 @@
|
||||||
<ul>
|
<ul>
|
||||||
{# @var containers \AIO\Container\Container[] #}
|
{# @var containers \AIO\Container\Container[] #}
|
||||||
{% for container in containers %}
|
{% for container in containers %}
|
||||||
{% if container.GetIdentifier() != 'nextcloud-aio-borgbackup' and container.GetIdentifier() != 'nextcloud-aio-watchtower' and container.GetIdentifier() != 'nextcloud-aio-domaincheck' %}
|
{% if container.GetIdentifier() not in ['nextcloud-aio-borgbackup', 'nextcloud-aio-watchtower', 'nextcloud-aio-domaincheck'] %}
|
||||||
<li>
|
<li>
|
||||||
{% if class(container.GetStartingState()) == 'AIO\\Container\\State\\StartingState' %}
|
{% if class(container.GetStartingState()) == 'AIO\\Container\\State\\StartingState' %}
|
||||||
<span class="status running"></span>
|
<span class="status running"></span>
|
||||||
|
|
Loading…
Reference in a new issue