diff options
author | Marian Sigler <m@qjym.de> | 2012-09-19 23:40:17 +0200 |
---|---|---|
committer | Marian Sigler <m@qjym.de> | 2012-09-19 23:40:17 +0200 |
commit | 519384f4f2b51ef1db31b9d7b13123da1fd7e779 (patch) | |
tree | 562710c6c9feeea2c18587b96a591f8f305bd0e7 /templates/index.html | |
parent | 388c94deb866fdc9e25de31728ecdadecf4e5785 (diff) | |
download | web-519384f4f2b51ef1db31b9d7b13123da1fd7e779.tar.gz web-519384f4f2b51ef1db31b9d7b13123da1fd7e779.tar.bz2 web-519384f4f2b51ef1db31b9d7b13123da1fd7e779.zip |
login works now.
Diffstat (limited to 'templates/index.html')
-rw-r--r-- | templates/index.html | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/templates/index.html b/templates/index.html index 74ffb6b..cb9c238 100644 --- a/templates/index.html +++ b/templates/index.html @@ -2,10 +2,14 @@ {%- from '_macros.html' import render_field %} {%- block content %} <p>Willkommen bei <strong>spline accounts</strong>!</p> +{%- if session.username %} +<p>Hallo {{ session.username }}. <a href="{{ url_for('settings') }}">Einstellungen</a></p> +{%- else %} <p><a href="/register">Account erstellen</a></p> <form action="" method="post"> {{ render_field(form.username) }} {{ render_field(form.password) }} <input type="submit" value="Login" /> </form> +{%- endif %} {%- endblock %} |