SFS/templates/base.html

53 lines
2.2 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 %} - SFS</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 %}
Log in
{% 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('/myrepo')">My repo</div>
<div id="username-item2" class="menu-item" onclick="javascript:go('/password')">Change password</div>
<div id="username-item3" class="menu-item" onclick="javascript:go('/logout')">Log out</div>
{% if user is not none and user.is_admin >= 5 %}
<div id="username-item4" class="menu-item" onclick="javascript:go('/admin/users')">Admin users</div>
{% endif %}
{% else %}
<div id="username-item1" class="menu-item" onclick="javascript:go('/login')">Log in</div>
{% endif %}
</div><!-- username-items-->
</div><!-- entete -->
<!-- CONTENU -->
{% block contenu %}
{% endblock %}
<!-- / CONTENU -->
</div>
{% block script %} {% endblock %}
</body>
</html>