{% block sidebar %}
{% endblock %}
{# Display django.contrib.messages as Bootstrap alerts #}
{% bootstrap_messages %}
{% block content %}{% endblock %}
{% block content %}{% endblock %}
{% if request_user.is_authenticated %}
{{ request_user.name }} {{ request_user.surname }}
Pseudo : {{ request_user.pseudo }}
Chambre : {{ request_user.room }}
Connexion : {% if request_user.has_access == True %}Active{% else %}Désactivée{% endif %}
Fin d'adhésion : {% if request_user.end_adhesion != None %}{{ request_user.end_adhesion }}{% else %}Non adhérent{% endif %}
{% else %}
{% if request_user.is_authenticated %}
Vous n'êtes pas authentifié
{% endif %}
{{ interfaces|length }} machines actives
{% for interface in interfaces|slice:":5" %}
{{interface.dns}}
{% endfor %}
{% endif %}