{% extends "base.html" %} {% block title %}Resource Historie{% endblock %} {% block extra_css %} {% endblock %} {% block content %}

Resource Historie

Detaillierte Aktivitätshistorie

Zurück zur Übersicht
📋 Resource Details
{% if resource.resource_type == 'domain' %} 🌐 {% elif resource.resource_type == 'ipv4' %} 🖥️ {% else %} 📱 {% endif %}
{{ resource.resource_value }}
{% if resource.status == 'available' %} ✅ Verfügbar {% elif resource.status == 'allocated' %} 🔗 Zugeteilt {% else %} ⚠️ Quarantäne {% endif %}
Ressourcentyp
{{ resource.resource_type|upper }}
Erstellt am
{{ resource.created_at.strftime('%d.%m.%Y %H:%M') if resource.created_at else '-' }}
Status geändert
{{ resource.status_changed_at.strftime('%d.%m.%Y %H:%M') if resource.status_changed_at else '-' }}
{% if resource.allocated_to_license %} {% endif %} {% if resource.quarantine_reason %}
Quarantäne-Grund
{{ resource.quarantine_reason }}
{% endif %} {% if resource.quarantine_until %}
Quarantäne bis
{{ resource.quarantine_until.strftime('%d.%m.%Y') }}
{% endif %}
{% if resource.notes %}
📝 Notizen

{{ resource.notes }}

{% endif %}
⏱️ Aktivitäts-Historie
{% if history %}
{% for event in history %}
{% if event.action == 'created' %}
Ressource erstellt
{% elif event.action == 'allocated' %}
An Lizenz zugeteilt
{% elif event.action == 'deallocated' %}
Von Lizenz freigegeben
{% elif event.action == 'quarantined' %}
In Quarantäne gesetzt
{% elif event.action == 'released' %}
Aus Quarantäne entlassen
{% elif event.action == 'deleted' %}
Ressource gelöscht
{% else %}
{{ event.action }}
{% endif %}
{{ event.action_by }} {% if event.ip_address %}  •  {{ event.ip_address }} {% endif %} {% if event.license_id %}  •  Lizenz #{{ event.license_id }} {% endif %}
{% if event.details %}
Details:
{{ event.details|tojson(indent=2) }}
{% endif %}
{{ event.action_at.strftime('%d.%m.%Y') }}
{{ event.action_at.strftime('%H:%M:%S') }}
{% endfor %}
{% else %}

Keine Historie-Einträge vorhanden.

{% endif %}
{% endblock %}