aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorThibaut Horel <thibaut.horel@gmail.com>2012-11-07 01:44:50 +0100
committerThibaut Horel <thibaut.horel@gmail.com>2012-11-07 01:44:50 +0100
commit2560a668f7b46067566a7203666f4d072ac6752e (patch)
treefbfd61f94924588c7f4cd0c1943f12cda1baccf4 /templates
parentdf25a48abd69292af55f3356a48a737da829cd20 (diff)
downloadfamille-flask-2560a668f7b46067566a7203666f4d072ac6752e.tar.gz
Add logout
Diffstat (limited to 'templates')
-rw-r--r--templates/layout.html3
-rw-r--r--templates/toto.html5
2 files changed, 2 insertions, 6 deletions
diff --git a/templates/layout.html b/templates/layout.html
index be923ea..f5a5395 100644
--- a/templates/layout.html
+++ b/templates/layout.html
@@ -10,7 +10,8 @@
<div class="container">
<div class="sheet">
<div class="top">
- (<a href="/user/edit">Mon compte</a> | <a href="/disconnect.php">Se déconnecter</a>)</p>
+ {{ session['user_name']}}
+ (<a href="/user/edit">Mon compte</a> | <a href="/logout">Se déconnecter</a>)</p>
</div>
<div class="main_menu">
<table>
diff --git a/templates/toto.html b/templates/toto.html
deleted file mode 100644
index cfe9772..0000000
--- a/templates/toto.html
+++ /dev/null
@@ -1,5 +0,0 @@
-{% extends "layout.html" %}
-{% block content %}
- salut
-{% endblock %}
-