mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-20 14:36:52 +00:00
allow to hide containers from the interface via display_name
Signed-off-by: Simon L <szaimen@e.mail.de>
This commit is contained in:
parent
117c3de7c5
commit
2fd750c8b2
2 changed files with 6 additions and 6 deletions
|
|
@ -238,7 +238,7 @@
|
||||||
{
|
{
|
||||||
"container_name": "nextcloud-aio-borgbackup",
|
"container_name": "nextcloud-aio-borgbackup",
|
||||||
"depends_on": [],
|
"depends_on": [],
|
||||||
"display_name": "Borgbackup",
|
"display_name": "",
|
||||||
"image": "nextcloud/aio-borgbackup",
|
"image": "nextcloud/aio-borgbackup",
|
||||||
"ports": [],
|
"ports": [],
|
||||||
"internal_port": "",
|
"internal_port": "",
|
||||||
|
|
@ -311,7 +311,7 @@
|
||||||
{
|
{
|
||||||
"container_name": "nextcloud-aio-watchtower",
|
"container_name": "nextcloud-aio-watchtower",
|
||||||
"depends_on": [],
|
"depends_on": [],
|
||||||
"display_name": "Watchtower",
|
"display_name": "",
|
||||||
"image": "nextcloud/aio-watchtower",
|
"image": "nextcloud/aio-watchtower",
|
||||||
"ports": [],
|
"ports": [],
|
||||||
"internal_port": "",
|
"internal_port": "",
|
||||||
|
|
@ -332,7 +332,7 @@
|
||||||
{
|
{
|
||||||
"depends_on": [],
|
"depends_on": [],
|
||||||
"container_name": "nextcloud-aio-domaincheck",
|
"container_name": "nextcloud-aio-domaincheck",
|
||||||
"display_name": "Domaincheck",
|
"display_name": "",
|
||||||
"image": "nextcloud/aio-domaincheck",
|
"image": "nextcloud/aio-domaincheck",
|
||||||
"ports": [
|
"ports": [
|
||||||
"%APACHE_PORT%/tcp"
|
"%APACHE_PORT%/tcp"
|
||||||
|
|
|
||||||
|
|
@ -38,10 +38,10 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% for container in containers %}
|
{% for container in containers %}
|
||||||
{% if container.GetIdentifier() not in ['nextcloud-aio-domaincheck', 'nextcloud-aio-borgbackup', 'nextcloud-aio-watchtower'] and class(container.GetRunningState()) == 'AIO\\Container\\State\\RunningState' %}
|
{% if container.GetDisplayName() != '' and class(container.GetRunningState()) == 'AIO\\Container\\State\\RunningState' %}
|
||||||
{% set isAnyRunning = true %}
|
{% set isAnyRunning = true %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if container.GetIdentifier() not in ['nextcloud-aio-domaincheck', 'nextcloud-aio-borgbackup', 'nextcloud-aio-watchtower'] and class(container.GetRestartingState()) == 'AIO\\Container\\State\\RestartingState' %}
|
{% if container.GetDisplayName() != '' 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' %}
|
||||||
|
|
@ -219,7 +219,7 @@
|
||||||
<ul>
|
<ul>
|
||||||
{# @var containers \AIO\Container\Container[] #}
|
{# @var containers \AIO\Container\Container[] #}
|
||||||
{% for container in containers %}
|
{% for container in containers %}
|
||||||
{% if container.GetIdentifier() not in ['nextcloud-aio-borgbackup', 'nextcloud-aio-watchtower', 'nextcloud-aio-domaincheck'] %}
|
{% if container.GetDisplayName() != '' %}
|
||||||
<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…
Add table
Add a link
Reference in a new issue