fixy i now funkcje (przebudowa rozwiazywania nazw)

This commit is contained in:
Mateusz Gruszczyński
2025-03-09 10:53:28 +01:00
parent f8a9dd451b
commit 1dc4300881
2 changed files with 69 additions and 99 deletions

View File

@ -29,7 +29,7 @@
<th>Wybrany plik /etc/hosts</th>
<th>Auto Deploy</th>
<th>Auto Backup</th>
<th>Wyłącz regex deploy</th> <!-- Nowa kolumna -->
<th>Wyłącz CIDR/regex deploy</th>
<th>Akcje</th>
</tr>
</thead>
@ -37,16 +37,15 @@
{% for h in hosts %}
<tr>
<td>{{ h.id }}</td>
<td data-bs-toggle="tooltip" data-bs-placement="top"
title="{% if h.use_daemon and h.type == 'linux' and h.daemon_url %}{{ h.resolved_daemon }}{% else %}{{ h.resolved_hostname }}{% endif %}">
<td data-bs-toggle="tooltip" data-bs-placement="top" title="{{ h.raw_ip }}">
{% if h.use_daemon and h.type == 'linux' and h.daemon_url %}
{% set daemon_str = h.daemon_url.split('://') | last %}
{% set daemon_ip = daemon_str.split(':')[0] %}
{{ daemon_ip }}
{{ h.resolved_daemon }}
{% else %}
{{ h.hostname }}
{{ h.resolved_hostname }}
{% endif %}
</td>
</td>
<td>
{% if h.use_daemon and h.type == 'linux' %}
<em></em>