diff --git a/templates/server_list.html b/templates/server_list.html index 1b85142..6dbf61e 100644 --- a/templates/server_list.html +++ b/templates/server_list.html @@ -8,97 +8,132 @@ max-width: 300px; text-align: left; } - .badge-status { - font-size: 0.73em; - } - .action-btns a, .action-btns button { - margin-right: 4px; - } {% endblock %} {% block content %} -
ID | -Nazwa serwera | -Użytkownik | -Port | -Typ | -Uwierzytelnianie | -Plik /etc/hosts | -Auto Deploy | -Auto Backup | -Wyłącz CIDR | -Akcje | -
---|---|---|---|---|---|---|---|---|---|---|
{{ h.id }} | -- {% if h.use_daemon and h.type == 'linux' and h.daemon_url %} - {{ h.resolved_daemon }} - {% else %} - {{ h.resolved_hostname }} - {% endif %} - | -{{ '-' if h.use_daemon and h.type == 'linux' else h.username }} | -{{ '-' if h.use_daemon and h.type == 'linux' else h.port }} | -- {{ 'Linux (daemon)' if h.use_daemon else h.type.capitalize() }} - | -{{ '- linux daemon -' if h.use_daemon else h.auth_method|capitalize }} | -{{ h.preferred_hostfile.title if h.preferred_hostfile else '(Default)' }} | -- - | -- - | -- - | -- Edytuj - {% if h.use_daemon and h.type == 'linux' %} - - {% else %} - Testuj - {% endif %} - Backup - - | -
ID | +Nazwa serwera | +Użytkownik | +Port | +Typ | +Uwierzytelnianie | +Wybrany plik /etc/hosts | +Auto Deploy | +Auto Backup | +Wyłącz CIDR/regex deploy | +Akcje | +
---|---|---|---|---|---|---|---|---|---|---|
{{ h.id }} | ++ {% if h.use_daemon and h.type == 'linux' and h.daemon_url %} + {{ h.resolved_daemon }} + {% else %} + {{ h.resolved_hostname }} + {% endif %} + | + + ++ {% if h.use_daemon and h.type == 'linux' %} + — + {% else %} + {{ h.username }} + {% endif %} + | ++ {% if h.use_daemon and h.type == 'linux' %} + — + {% else %} + {{ h.port }} + {% endif %} + | ++ {% if h.type == 'linux' %} + Linux{% if h.use_daemon %} (Demon){% endif %} + {% else %} + Mikrotik + {% endif %} + | ++ {% if h.use_daemon and h.type == 'linux' %} + - używa Demona - + {% else %} + {% if h.auth_method == 'password' %} + Hasło + {% elif h.auth_method == 'ssh_key' %} + Klucz SSH + {% elif h.auth_method == 'global_key' %} + Globalny klucz + {% else %} + {{ h.auth_method }} + {% endif %} + {% endif %} + | ++ {% if h.preferred_hostfile %} + {{ h.preferred_hostfile.title }} + {% else %} + (Default) + {% endif %} + | ++ + | ++ + | ++ + | + + | +
Serwer:
+Host:
+ -Czas działania: