From e6bf224a9a38c704c1136f470d220cc51c0ca468 Mon Sep 17 00:00:00 2001 From: Jean-Yves <7360784+docjyJ@users.noreply.github.com> Date: Thu, 6 Mar 2025 16:00:39 +0100 Subject: [PATCH] Fix request Signed-off-by: Jean-Yves <7360784+docjyJ@users.noreply.github.com> --- php/templates/components/container-state.twig | 24 +++++++++++-------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/php/templates/components/container-state.twig b/php/templates/components/container-state.twig index a79db31e..8bc8c559 100644 --- a/php/templates/components/container-state.twig +++ b/php/templates/components/container-state.twig @@ -1,15 +1,19 @@ {# @var c \App\Containers\Container #}
  • - {% if c.GetStartingState().value == 'starting' %} - - {% elseif c.GetRunningState().value == 'running' %} - - {% else %} - - {% endif %} - {{ c.GetDisplayName() }} - (Stopped) + {% if c.GetRunningState().value == 'running' %} + + {{ c.GetDisplayName() }} + (Running) + {% elseif c.GetStartingState().value == 'starting' %} + + {{ c.GetDisplayName() }} + (Starting) + {% else %} + + {{ c.GetDisplayName() }} + (Stopped) + {% endif %} {% if c.GetDocumentation() != '' %} (docs) {% endif %} @@ -17,7 +21,7 @@ {% if c.GetUiSecret() != '' %}
    Show password for {{ c.GetDisplayName() }} -

    {{ c.GetUiSecret() }}

    +
    {% endif %}
  • \ No newline at end of file