From bc7a25fa429851592957ba9ab52eb4309d57bc9f Mon Sep 17 00:00:00 2001 From: Simon L Date: Wed, 4 Oct 2023 13:40:19 +0200 Subject: [PATCH] add documentation links correctly Signed-off-by: Simon L --- php/templates/containers.twig | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/php/templates/containers.twig b/php/templates/containers.twig index 94756ad5..165ceef3 100644 --- a/php/templates/containers.twig +++ b/php/templates/containers.twig @@ -255,19 +255,27 @@ {% for container in containers %} {% if container.GetDisplayName() != '' %}
  • - {% set displayName = container.GetDisplayName() %} - {% if container.GetDocumentation() != '' %} - {% set displayName = '' ~ displayName ~ '' %} - {% endif %} {% if class(container.GetStartingState()) == 'AIO\\Container\\State\\StartingState' %} - {{ displayName }} (Starting) + {{ container.GetDisplayName() }} (Starting) + {% if container.GetDocumentation() != '' %} + (docs) + {% endif %} + {% elseif class(container.GetRunningState()) == 'AIO\\Container\\State\\RunningState' %} - {{ displayName }} (Running) + {{ container.GetDisplayName() }} (Running) + {% if container.GetDocumentation() != '' %} + (docs) + {% endif %} + {% else %} - {{ displayName }} (Stopped) + {{ container.GetDisplayName() }} (Stopped) + {% if container.GetDocumentation() != '' %} + (docs) + {% endif %} + {% endif %}
  • {% endif %}