mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-11-09 21:50:48 +08:00
Merge pull request #3481 from nextcloud/enh/noid/add-documentation-links
This commit is contained in:
commit
f2fee01201
1 changed files with 15 additions and 7 deletions
|
|
@ -255,19 +255,27 @@
|
||||||
{% for container in containers %}
|
{% for container in containers %}
|
||||||
{% if container.GetDisplayName() != '' %}
|
{% if container.GetDisplayName() != '' %}
|
||||||
<li>
|
<li>
|
||||||
{% set displayName = container.GetDisplayName() %}
|
|
||||||
{% if container.GetDocumentation() != '' %}
|
|
||||||
{% set displayName = '<a href="' ~ container.GetDocumentation() ~ '">' ~ displayName ~ '</a>' %}
|
|
||||||
{% endif %}
|
|
||||||
{% 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>
|
||||||
<span>{{ displayName }} (<a href="/api/docker/logs?id={{ container.GetIdentifier() }}">Starting</a>)</span>
|
<span>{{ container.GetDisplayName() }} (<a href="/api/docker/logs?id={{ container.GetIdentifier() }}">Starting</a>)
|
||||||
|
{% if container.GetDocumentation() != '' %}
|
||||||
|
(<a href="{{ container.GetDocumentation() }}">docs</a>)
|
||||||
|
{% endif %}
|
||||||
|
</span>
|
||||||
{% elseif class(container.GetRunningState()) == 'AIO\\Container\\State\\RunningState' %}
|
{% elseif class(container.GetRunningState()) == 'AIO\\Container\\State\\RunningState' %}
|
||||||
<span class="status success"></span>
|
<span class="status success"></span>
|
||||||
<span>{{ displayName }} (<a href="/api/docker/logs?id={{ container.GetIdentifier() }}">Running</a>)</span>
|
<span>{{ container.GetDisplayName() }} (<a href="/api/docker/logs?id={{ container.GetIdentifier() }}">Running</a>)
|
||||||
|
{% if container.GetDocumentation() != '' %}
|
||||||
|
(<a href="{{ container.GetDocumentation() }}">docs</a>)
|
||||||
|
{% endif %}
|
||||||
|
</span>
|
||||||
{% else %}
|
{% else %}
|
||||||
<span class="status error"></span>
|
<span class="status error"></span>
|
||||||
<span>{{ displayName }} (<a href="/api/docker/logs?id={{ container.GetIdentifier() }}">Stopped</a>)</span>
|
<span>{{ container.GetDisplayName() }} (<a href="/api/docker/logs?id={{ container.GetIdentifier() }}">Stopped</a>)
|
||||||
|
{% if container.GetDocumentation() != '' %}
|
||||||
|
(<a href="{{ container.GetDocumentation() }}">docs</a>)
|
||||||
|
{% endif %}
|
||||||
|
</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</li>
|
</li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue