2016-02-01 16:35:55 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="fr">
|
|
|
|
<head>
|
|
|
|
{% block head %}
|
|
|
|
<title>{% block title %}Bienvenue sur le Sith de l'AE!{% endblock %}</title>
|
|
|
|
<link rel="stylesheet" href="{{ static('core/style.css') }}">
|
|
|
|
<script src="{{ static('core/script.js') }}"></script>
|
|
|
|
<script src="http://code.jquery.com/jquery-2.2.0.min.js"></script>
|
|
|
|
{% endblock %}
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
|
|
|
<header>
|
|
|
|
{% block header %}
|
|
|
|
{% if user.is_authenticated() %}Hello, {{ user.username }}!{% endif %}
|
|
|
|
<ul>
|
|
|
|
{% if not user.is_authenticated() %}
|
|
|
|
<li><a href="{{ url('core:register') }}">Register</a></li>
|
|
|
|
<li><a href="{{ url('core:login') }}">Login</a></li>
|
|
|
|
{% else %}
|
|
|
|
<li><a href="{{ url('core:logout') }}">Logout</a></li>
|
|
|
|
{% endif %}
|
|
|
|
</ul>
|
|
|
|
{% if user.is_authenticated() %}
|
|
|
|
<ul>
|
|
|
|
<li><a href="{{ url('core:user_profile', user_id=user.id) }}">Profile</a></li>
|
|
|
|
<li><a href="{{ url('core:user_list') }}">Users</a></li>
|
|
|
|
<li><a href="{{ url('core:page_list') }}">Pages</a></li>
|
2016-02-02 15:34:36 +00:00
|
|
|
<li><a href="{{ url('club:club_list') }}">Clubs</a></li>
|
2016-02-01 16:35:55 +00:00
|
|
|
</ul>
|
|
|
|
{% endif %}
|
|
|
|
{% endblock %}
|
|
|
|
</header>
|
|
|
|
|
|
|
|
<div id="content">
|
|
|
|
{% if error %}
|
|
|
|
{{ error }}
|
|
|
|
{% endif %}
|
|
|
|
{% block content %}{% endblock %}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<footer>
|
|
|
|
{% block footer %}
|
|
|
|
Site réalisé par des gens biens
|
|
|
|
{% endblock %}
|
|
|
|
</footer>
|
2016-02-02 10:00:08 +00:00
|
|
|
<!--
|
|
|
|
{% block tests %}
|
|
|
|
{{ tests }}
|
|
|
|
{% endblock %}
|
|
|
|
-->
|
2016-02-01 16:35:55 +00:00
|
|
|
</body>
|
|
|
|
</html>
|