{% extends "base.html" %} {% block title %}Admin-Bereich{% endblock %} {% block content %}

Admin-Bereich

Benutzerverwaltung

{% for user in users %} {% endfor %}
ID Benutzername E-Mail Admin Gedanken Aktionen
{{ user.id }} {{ user.username }} {{ user.email }} {% if user.is_admin %} Admin {% else %} User {% endif %} {{ user.thoughts|length }}

Mindmap-Knoten Verwaltung

{% for node in nodes %} {% endfor %}
ID Name Elternknoten Gedanken Aktionen
{{ node.id }} {{ node.name }} {% if node.parent %} {{ node.parent.name }} {% else %} Wurzelknoten {% endif %} {{ node.thoughts|length }}

Gedanken-Verwaltung

{% for thought in thoughts %} {% endfor %}
ID Titel Autor Datum Bewertung Aktionen
{{ thought.id }} {{ thought.title }} {{ thought.author.username }} {{ thought.timestamp.strftime('%d.%m.%Y') }}
{{ "%.1f"|format(thought.average_rating) }}
{% for i in range(5) %} {% if i < thought.average_rating|int %} {% elif i < (thought.average_rating|int + 0.5) %} {% else %} {% endif %} {% endfor %}

Systemstatistiken

Benutzer

{{ users|length }}

Knoten

{{ nodes|length }}

Gedanken

{{ thoughts|length }}

Kommentare

{% set comment_count = 0 %} {% for thought in thoughts %} {% set comment_count = comment_count + thought.comments|length %} {% endfor %} {{ comment_count }}

Aktive Benutzer

Hier würde ein Aktivitätsdiagramm angezeigt werden

Gedanken pro Kategorie

Hier würde eine Verteilungsstatistik angezeigt werden

System-Log

[INFO] [{{ now.strftime('%Y-%m-%d %H:%M:%S') }}] System gestartet
[INFO] [{{ now.strftime('%Y-%m-%d %H:%M:%S') }}] Admin-Bereich aufgerufen von {{ current_user.username }}
[WARN] [{{ now.strftime('%Y-%m-%d %H:%M:%S') }}] Hohe Serverauslastung erkannt
[INFO] [{{ now.strftime('%Y-%m-%d %H:%M:%S') }}] Backup erfolgreich erstellt
[ERROR] [{{ now.strftime('%Y-%m-%d %H:%M:%S') }}] API-Zugriffsfehler (Timeout) bei externer Anfrage
{% endblock %} {% block extra_js %} {% endblock %}