This commit is contained in:
Mateusz Gruszczyński
2025-03-07 14:41:17 +01:00
parent f151a8a050
commit 4827f611b6
2 changed files with 38 additions and 49 deletions

View File

@ -26,7 +26,7 @@
<th>Port</th>
<th>Typ</th>
<th>Uwierzytelnianie</th>
<th>Wybrany plik /etc/hosts</th> <!-- Nowa kolumna -->
<th>Wybrany plik /etc/hosts</th>
<th>Auto Deploy</th>
<th>Auto Backup</th>
<th>Akcje</th>
@ -37,10 +37,28 @@
<tr>
<td>{{ h.id }}</td>
<td data-bs-toggle="tooltip" data-bs-placement="top" title="{{ h.resolved_hostname }}">
{{ h.hostname }}
{% if h.use_daemon and h.type == 'linux' and h.daemon_url %}
{% set daemon_str = h.daemon_url.split('://') | last %}
{% set daemon_split = daemon_str.split(':') %}
<small>(Daemon IP: {{ daemon_split[0] }})</small>
{% else %}
{{ h.hostname }}
{% endif %}
</td>
<td>
{% if h.use_daemon and h.type == 'linux' %}
<em></em>
{% else %}
{{ h.username }}
{% endif %}
</td>
<td>
{% if h.use_daemon and h.type == 'linux' %}
<em></em>
{% else %}
{{ h.port }}
{% endif %}
</td>
<td>{{ h.username }}</td>
<td>{{ h.port }}</td>
<td>
{% if h.type == 'linux' %}
Linux{% if h.use_daemon %} (Demon){% endif %}