summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorMarian Sigler <m@qjym.de>2012-09-26 18:29:10 +0200
committerMarian Sigler <m@qjym.de>2012-09-26 18:29:10 +0200
commit8f46b1f1b131a57d46e8d1536d408b86105afac5 (patch)
tree309816020bde692e20d97c3bb292f23a58e5d006 /templates
parentb914225af239041c77bc4557a12e259a78d6025a (diff)
downloadweb-8f46b1f1b131a57d46e8d1536d408b86105afac5.tar.gz
web-8f46b1f1b131a57d46e8d1536d408b86105afac5.tar.bz2
web-8f46b1f1b131a57d46e8d1536d408b86105afac5.zip
layout stuff
Diffstat (limited to 'templates')
-rw-r--r--templates/index.html15
1 files changed, 10 insertions, 5 deletions
diff --git a/templates/index.html b/templates/index.html
index ea5e258..b3bd93c 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -1,18 +1,23 @@
{%- extends 'base.html' %}
{%- from '_macros.html' import render_field %}
{%- block content %}
-{%- if session.username %}
+
+{%- if g.user %}
<p>Hallo {{ session.username }}. <a href="{{ url_for('settings') }}">Einstellungen</a></p>
{%- else %}
-<p>
- <a href="/register">Account erstellen</a> |
- <a href="/lost_password">Passwort vergessen</a>
-</p>
<form action="{{ url_for('index') }}" method="post" class="form-horizontal">
+ <h2>Login</h2>
+ <p>
+ Willkommen bei <strong>spline accounts</strong>.
+ Melde dich an, informier dich, oder leg einen account an.
+ </p>
{{ render_field(form.username, autofocus="autofocus") }}
{{ render_field(form.password) }}
{{ form.csrf_token }}
<div class="form-actions"><input type="submit" value="Login" /></div>
+ <p class="form-actions"><a href="/register">Account erstellen</a></div>
+ <p class="form-actions"><a href="/lost_password">Passwort vergessen</a></div>
</form>
{%- endif %}
+
{%- endblock %}