diff --git a/web/app/auth/views.py b/web/app/auth/views.py index c0fe6934284c9c4e9d838a9d6a48c7d39bc241b1..c1fe37ed91d8792ac6709fcac8994c56c3a449da 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 0000000000000000000000000000000000000000..1d26cb5d319c7e724bd4ccbdcd442908d9266305 --- /dev/null +++ b/web/app/templates/auth/_breadcrumbs.html.j2 @@ -0,0 +1,15 @@ +<ul class="tabs tabs-transparent"> + <li class="tab"><a href="{{ url_for('main.index') }}" target="_self">nopaque</a></li> + <li class="tab disabled"><i class="material-icons">navigate_next</i></li> + {% if request.path == url_for('.login') %} + <li class="tab"><a class="active" href="{{ url_for('.login') }}" target="_self">{{ title }}</a></li> + {% elif request.path == url_for('.register') %} + <li class="tab"><a class="active" href="{{ url_for('.register') }}" target="_self">{{ title }}</a></li> + {% elif request.path == url_for('.reset_password', token=token) %} + <li class="tab"><a class="active" href="{{ url_for('.reset_password', token=token) }}" target="_self">{{ title }}</a></li> + {% elif request.path == url_for('.reset_password_request') %} + <li class="tab"><a class="active" href="{{ url_for('.reset_password_request') }}" target="_self">{{ title }}</a></li> + {% elif request.path == url_for('.unconfirmed') %} + <li class="tab"><a class="active" href="{{ url_for('.unconfirmed') }}" target="_self">{{ title }}</a></li> + {% endif %} +</ul> diff --git a/web/app/templates/auth/login.html.j2 b/web/app/templates/auth/login.html.j2 index 657da25f602a21a6451a2998ba9832a70e9906a7..fa99f31ad70708e32ce153e01c7ae015998bdd1d 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() }} <style> diff --git a/web/app/templates/auth/register.html.j2 b/web/app/templates/auth/register.html.j2 index 9909cd608b1cb51d79ecb9026747d79d0adeb231..e41990b3f62196766734611c5eab47e07a80d9cb 100644 --- a/web/app/templates/auth/register.html.j2 +++ b/web/app/templates/auth/register.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() }} <style> diff --git a/web/app/templates/auth/reset_password.html.j2 b/web/app/templates/auth/reset_password.html.j2 index f3e4f26e71ec20db9f9da4b27ee5a44f33c7f265..21da27dba70722c6985ad3c78f2b7aed4e69dcc3 100644 --- a/web/app/templates/auth/reset_password.html.j2 +++ b/web/app/templates/auth/reset_password.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 page_content %} <div class="container"> <div class="row"> diff --git a/web/app/templates/auth/reset_password_request.html.j2 b/web/app/templates/auth/reset_password_request.html.j2 index 403f1388230424cd657c47ce529c32edba90598f..0a2baf9ff7e22a99c7b5978c425889d94d052f4d 100644 --- a/web/app/templates/auth/reset_password_request.html.j2 +++ b/web/app/templates/auth/reset_password_request.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 page_content %} <div class="container"> <div class="row"> diff --git a/web/app/templates/auth/unconfirmed.html.j2 b/web/app/templates/auth/unconfirmed.html.j2 index 613c51a402ca22ef462a48c24ff711fd065fcf2f..d2b1e359fd3fe07b1b74b2efd554e9a383acda21 100644 --- a/web/app/templates/auth/unconfirmed.html.j2 +++ b/web/app/templates/auth/unconfirmed.html.j2 @@ -1,5 +1,9 @@ {% extends "nopaque.html.j2" %} +{% block nav_content %} +{% include 'auth/_breadcrumbs.html.j2' %} +{% endblock nav_content %} + {% block page_content %} <div class="container"> <div class="row">