{% load staticfiles %} {# Load the tag library #} {% load bootstrap3 %} {# Load CSS and JavaScript #} {% bootstrap_css %} {% bootstrap_javascript %} {{ site_name }} : {% block title %}Accueil{% endblock %}
{% block sidebar %} {% endblock %}
{# Display django.contrib.messages as Bootstrap alerts #} {% bootstrap_messages %}
{% 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 %} Active {% else %} Désactivée {% endif %}
Adhésion {% if request_user.end_adhesion != None %} {{ request_user.end_adhesion }} {% else %} Non adhérent {% endif %}
{% else %}

Vous n'êtes pas authentifié

{% endif %}
{% if request_user.is_authenticated %}

{{ interfaces|length }} machines actives

    {% for interface in interfaces|slice:":5" %}
    {{interface.dns}}
    {% endfor %} {% if interfaces|length > 5 %} Voir mes machines {% endif %}
{% endif %}
{# Read the documentation for more information #}