Files
nextcloud/php/templates/components/container-state.twig
Pablo Zmdl 021854144b Show all strings translated, if available
AI-assistant: Copilot v1.0.7 (Claude Sonnet 4.6)

Signed-off-by: Pablo Zmdl <pablo@nextcloud.com>
2026-03-23 15:00:35 +01:00

30 lines
1.1 KiB
Twig

{# @var c \App\Containers\Container #}
<li>
<span>
{% if c.GetStartingState().value == 'starting' %}
<span class="status running"></span>
{{ c.displayName }}
(<a href="log?id={{ c.identifier }}" target="_blank">{{ t('Starting') }}</a>)
{% elseif c.GetRunningState().value == 'running' %}
<span class="status success"></span>
{{ c.displayName }}
(<a href="log?id={{ c.identifier }}" target="_blank">{{ t('Running') }}</a>)
{% else %}
<span class="status error"></span>
{{ c.displayName }}
(<a href="log?id={{ c.identifier }}" target="_blank">{{ t('Stopped') }}</a>)
{% endif %}
{% if c.documentation != '' %}
(<a target="_blank" href="{{ c.documentation }}">{{ t('docs') }}</a>)
{% endif %}
{% if c.GetUpdateState().value == 'different' %}
⚠️&nbsp;{{ t('Update') }}&nbsp;{{ t('available') }}
{% endif %}
</span>
{% if c.GetUiSecret() != '' %}
<details>
<summary>{{ t('Show password for') }} {{ c.displayName }}</summary>
<input type="text" value="{{ c.GetUiSecret() }}" readonly>
</details>
{% endif %}
</li>