From 850087f628201e9744cab932f15164d3f1af4fe8 Mon Sep 17 00:00:00 2001 From: Patrick Jentsch Date: Mon, 2 Nov 2020 10:01:02 +0100 Subject: [PATCH] Add breadcrumbs to auth package --- web/app/auth/views.py | 3 ++- web/app/templates/auth/_breadcrumbs.html.j2 | 15 +++++++++++++++ web/app/templates/auth/login.html.j2 | 4 ++++ web/app/templates/auth/register.html.j2 | 4 ++++ web/app/templates/auth/reset_password.html.j2 | 4 ++++ .../templates/auth/reset_password_request.html.j2 | 4 ++++ web/app/templates/auth/unconfirmed.html.j2 | 4 ++++ 7 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 web/app/templates/auth/_breadcrumbs.html.j2 diff --git a/web/app/auth/views.py b/web/app/auth/views.py index c0fe6934..c1fe37ed 100644 --- a/web/app/auth/views.py +++ b/web/app/auth/views.py @@ -153,4 +153,5 @@ def reset_password(token): return redirect(url_for('main.index')) return render_template('auth/reset_password.html.j2', reset_password_form=reset_password_form, - title='Password Reset') + title='Password Reset', + token=token) diff --git a/web/app/templates/auth/_breadcrumbs.html.j2 b/web/app/templates/auth/_breadcrumbs.html.j2 new file mode 100644 index 00000000..1d26cb5d --- /dev/null +++ b/web/app/templates/auth/_breadcrumbs.html.j2 @@ -0,0 +1,15 @@ + diff --git a/web/app/templates/auth/login.html.j2 b/web/app/templates/auth/login.html.j2 index 657da25f..fa99f31a 100644 --- a/web/app/templates/auth/login.html.j2 +++ b/web/app/templates/auth/login.html.j2 @@ -1,6 +1,10 @@ {% extends "nopaque.html.j2" %} {% import 'materialize/wtf.html.j2' as wtf %} +{% block nav_content %} +{% include 'auth/_breadcrumbs.html.j2' %} +{% endblock nav_content %} + {% block styles %} {{ super() }}