{% extends "base.html" %}
{% load i18n %}
{% load misc %}

{% block head %}
{% if redirect_delay >= 0 and next_url %}
<meta http-equiv="refresh" content="{{ redirect_delay }};URL={{ next_url }}">
{% endif %}
{% endblock %}

{% block title %}accueil{% endblock %}

{% block disclaimer %}{% endblock %}

{% block content %}
<div class="hero-unit">
	<h1>Bienvenue{% if display_name %}, {{ display_name }}{% endif %}.</h1>
</div>

<div class="row"><div class="span12">
	{% block univinfo %}{% endblock %}
</div></div>

<div class="row">
	<div class="span6">
		<h2>Informations de connexion</h2>
		<ul>
			<li>Connexion établie le {{ pfsense_session.datetime_local|date:"l j F Y \à G\hi" }}</li>
			<li>Adresse IP : {{ pfsense_session.ip }}</li>
			<li>Adresse MAC : {{ pfsense_session.mac }}</li>
		</ul>
		<a class="btn btn-danger btn-large" href="/logout"><i class="icon-remove"></i> Déconnexion</a>
	</div>
	<div class="span6">
		{% if next_url %}
		<h2>Redirection</h2>
		<p>
		{% if redirect_delay > 0 %}
		Redirection vers <a href="{{ next_url }}" target="_blank">{{ next_url_host }}</a> dans {{ redirect_delay }} secondes.
		{% else %}
		Vous aviez demandé à aller sur <a href="{{ next_url }}" target="_blank">{{ next_url_host }}</a>.
		{% endif %}
		</p>
		{% endif %}
	</div>
</div>

{% endblock %}

