diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/index.html | 15 |
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 %} |