From 2fd750c8b255ff2933fa34ba2e8db93338fe8356 Mon Sep 17 00:00:00 2001 From: Simon L Date: Sun, 25 Dec 2022 15:56:37 +0100 Subject: [PATCH] allow to hide containers from the interface via display_name Signed-off-by: Simon L --- php/containers.json | 6 +++--- php/templates/containers.twig | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/php/containers.json b/php/containers.json index 2f49c6de..fb7fb679 100644 --- a/php/containers.json +++ b/php/containers.json @@ -238,7 +238,7 @@ { "container_name": "nextcloud-aio-borgbackup", "depends_on": [], - "display_name": "Borgbackup", + "display_name": "", "image": "nextcloud/aio-borgbackup", "ports": [], "internal_port": "", @@ -311,7 +311,7 @@ { "container_name": "nextcloud-aio-watchtower", "depends_on": [], - "display_name": "Watchtower", + "display_name": "", "image": "nextcloud/aio-watchtower", "ports": [], "internal_port": "", @@ -332,7 +332,7 @@ { "depends_on": [], "container_name": "nextcloud-aio-domaincheck", - "display_name": "Domaincheck", + "display_name": "", "image": "nextcloud/aio-domaincheck", "ports": [ "%APACHE_PORT%/tcp" diff --git a/php/templates/containers.twig b/php/templates/containers.twig index 08484823..90989315 100644 --- a/php/templates/containers.twig +++ b/php/templates/containers.twig @@ -38,10 +38,10 @@ {% endif %} {% 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 %} {% 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 %} {% endif %} {% if container.GetIdentifier() == 'nextcloud-aio-watchtower' and class(container.GetRunningState()) == 'AIO\\Container\\State\\RunningState' %} @@ -219,7 +219,7 @@