56 lines
2.4 KiB
HTML
56 lines
2.4 KiB
HTML
<html>
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
<link rel="shortcut icon" href="/static/favicon.ico">
|
|
{% include ['head-perso.html', 'head.html'] %}
|
|
{% block head %}
|
|
<title>{% block title %}{% endblock %} - Belote</title>
|
|
{% endblock %}
|
|
</head>
|
|
<body>
|
|
<div id="conteneur">
|
|
<!-- ENTETE -->
|
|
<div id="entete" class="clearfix-head">
|
|
<div id="logo">
|
|
<img src="/static/logo.png" height=100% width=100% />
|
|
</div><!-- logo -->
|
|
<div id="titre">
|
|
{% block titre %} {% endblock %}
|
|
</div><!-- titre -->
|
|
<div id="username">
|
|
{% if not user == None %}
|
|
{{ user.name }}
|
|
{% else %}
|
|
S'identifier
|
|
{% endif %}
|
|
<img id="username-fleche" src="/static/fleche-bas.gif"/>
|
|
</div><!-- usernamev -->
|
|
<div id="username-items">
|
|
{% if not user == None %}
|
|
<div id="username-item1" class="menu-item" onclick="javascript:go('/games')">Liste des jeux</div>
|
|
<div id="username-item2" class="menu-item" onclick="javascript:go('/password')">Changer mon mot de passe</div>
|
|
<div id="username-item3" class="menu-item" onclick="javascript:go('/logout')">Se déconnecter</div>
|
|
{% if user.level >= 8 %}
|
|
<div id="username-item4" class="menu-item" onclick="javascript:go('/admin/games')">Admin des jeux</div>
|
|
{% endif %}
|
|
{% if user.level >= 9 %}
|
|
<div id="username-item5" class="menu-item" onclick="javascript:go('/admin/users')">Admin des utilisateurs</div>
|
|
{% endif %}
|
|
{% else %}
|
|
<div id="username-item1" class="menu-item" onclick="javascript:go('/login')">S'identifier</div>
|
|
{% endif %}
|
|
</div><!-- username-items-->
|
|
</div><!-- entete -->
|
|
|
|
<!-- CONTENU -->
|
|
{% block contenu %}
|
|
{% endblock %}
|
|
<!-- / CONTENU -->
|
|
|
|
</div>
|
|
{% block script %} {% endblock %}
|
|
</body>
|
|
</html>
|
|
|
|
|