{% extends "base.html" %} {% from "macros.html" import state_badge, csrf_field %} {% block title %}Anbindungen{% endblock %} {% block content %}

Anbindungen

+ Neue Anbindung
{% if not mounts %}

Noch keine Anbindungen.

{% endif %}
{% for m in mounts %}
{{ m.name }} {{ state_badge(m) }} {% if not m.enabled %}deaktiviert{% endif %} {% if m.auto_mount %}auto{% endif %}
{% if m.type != MountType.SFTP %} {% if m.state == MountState.MOUNTED or m.state == MountState.DEGRADED %}
{{ csrf_field(csrf) }}
{% else %}
{{ csrf_field(csrf) }}
{% endif %} {% endif %} Bearbeiten Kopieren
{{ csrf_field(csrf) }}
{{ m.type.value }} · {% if m.type == MountType.CIFS %}//{{ m.server }}/{{ m.share }}{% elif m.type == MountType.SFTP %}{{ m.server }}:{{ m.port or 22 }}{{ m.share }}{% else %}{{ m.server }}:{{ m.share }}{% endif %} {% if m.mountpoint %} → {{ m.mountpoint }}{% endif %}
{% if m.last_error %}
{{ m.last_error }}
{% endif %} {% if key_names.get(m.id) %}
Anmeldung mit gespeicherten Zugangsdaten „{{ key_names[m.id] }}“
{% endif %} {% if m.type == MountType.SFTP %}
Hostschlüssel: {% if m.host_key %}{{ m.host_key.split()[0] }} festgehalten
{{ csrf_field(csrf) }}
{% else %}noch nicht bestätigt – bitte „Testen“{% endif %}
{% if pubkeys.get(m.id) %}
Öffentlicher Schlüssel für authorized_keys
{{ pubkeys[m.id] }}
{% endif %} {% endif %}
{% if reports.get(m.id) %}
Letzter Test {{ m.last_test_at|ago }} {% with report = reports[m.id], errors = {} %}{% include "partials/check_result.html" %}{% endwith %}
{% endif %}
{% endfor %}
{% endblock %}