{% extends 'base.html' %} {% block title %}Status-Übersicht{% endblock %} {% block content %}

Status-Übersicht

{% if space_is_open %} Space ist offen {% if space_open_duration %} seit {{ space_open_duration.hours }} Stunden und {{ space_open_duration.minutes }} Minuten {% endif %} {% else %} Space ist geschlossen {% endif %}
{% if duration_stats %}
Gesamtdauer: {% if duration_stats.days > 0 %}{{ duration_stats.days }} Tage, {% endif %}{{ duration_stats.hours }} Stunden, {{ duration_stats.minutes }} Minuten {{ duration_stats.percentage }}%
{% endif %} {% if statuses %}
{% if current_user and '/nbspspaceadmin' in current_user.groups %} {% endif %} {% for status in statuses %} {% if current_user and '/nbspspaceadmin' in current_user.groups %} {% endif %} {% endfor %}
Typ Inhalt Status Start EndeAktionen
{{ type_names.get(status.type, status.type) }} {{ status.content or '-' }} {% if status.state_open %} Offen {% else %} Geschlossen {% endif %} {% if status.start_date %}{{ status.start_date.strftime('%d.%m.%Y %H:%M') }}{% else %}-{% endif %} {% if status.end_date %}{{ status.end_date.strftime('%d.%m.%Y %H:%M') }}{% else %}-{% endif %} {% if status.state_open %} {% else %} - {% endif %}
{% for status in statuses %}
{{ type_names.get(status.type, status.type) }} {% if status.state_open %} Offen {% else %} Geschlossen {% endif %}
{{ status.content or '-' }}
{% if status.start_date %}{{ status.start_date.strftime('%d.%m.%Y %H:%M') }}{% else %}-{% endif %} {% if status.end_date %} → {{ status.end_date.strftime('%d.%m.%Y %H:%M') }}{% endif %} {% if current_user and '/nbspspaceadmin' in current_user.groups and status.state_open %}
{% endif %}
{% endfor %}
{% else %}

Keine Status-Einträge vorhanden.

{% endif %}
{% endblock %}