Belote/templates/base.html

54 lines
2.3 KiB
HTML
Raw Normal View History

2020-04-25 10:08:19 +00:00
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
2020-04-26 09:32:30 +00:00
<link rel="shortcut icon" href="/static/favicon.ico">
2020-04-25 10:08:19 +00:00
{% 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">
2020-04-26 09:32:30 +00:00
<img src="/static/logo.png" height=100% width=100% />
2020-04-25 10:08:19 +00:00
</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 > 9 %}
<div id="username-item4" class="menu-item" onclick="javascript:go('/admin/games')">Admin des jeux</div>
<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>