Self hosted FLOSS fitness/workout, nutrition and weight tracker
Added breadcrumb to reset password confirmation page.
Alexandre Murphy-Gonthier4b9cf4a7b76a
diff --git a/AUTHORS.rst b/AUTHORS.rstindex 6aa12a982..428213a4a 100644--- a/AUTHORS.rst+++ b/AUTHORS.rst@@ -16,6 +16,7 @@ Developers* Mihail Burduja - https://github.com/warchildmd* Colin Hare - https://github.com/cthare* Ryan Hughes - https://github.com/purplebird+* Alexandre Murphy-Gonthier - https://github.com/murphyalexandreTranslators-----------diff --git a/wger/gym/templates/gym/reset_user_password.html b/wger/gym/templates/gym/reset_user_password.htmlindex 741873faa..f43bf4f82 100644--- a/wger/gym/templates/gym/reset_user_password.html+++ b/wger/gym/templates/gym/reset_user_password.html@@ -1,10 +1,18 @@{% extends "base.html" %}-{% load i18n %}-{% load staticfiles %}-{% load wger_extras %}+{% load i18n staticfiles wger_extras django_bootstrap_breadcrumbs %}{% block title %}{{mod_user|format_username}}{% endblock %}+{% block breadcrumbs %}+ {{ block.super }}++ {% if perms.gym.manage_gyms %}+ {% breadcrumb "Gyms" "gym:gym:list" %}+ {% breadcrumb_raw mod_user.userprofile.gym "gym:gym:user-list" mod_user.userprofile.gym.pk %}+ {% breadcrumb_raw mod_user.get_full_name "gym:gym:edit-user-permission" mod_user.pk %}+ {% breadcrumb "Reset user password" "gym:gym:reset-user-password" %}+ {% endif %}+{% endblock %}{% block content %}<table class="table">@@ -19,23 +27,8 @@</table>{% endblock %}---{% block sidebar %}-<h4>{% trans "Info" %}</h4><p>{% blocktrans %}This user's password has been reset. Please notify the user of their new password.{% endblocktrans %}</p>--<h4>{% trans "Options" %}</h4>-<p>-<a href="{% url 'gym:gym:user-list' mod_user.userprofile.gym.pk %}" {% auto_link_css flavour %}>- <img src="{% static 'images/icons/list.svg' %}"- width="32"- height="32"- alt="{% trans 'Back to overview' %}">- {% trans "Back to gym" %}-</a>-</p>{% endblock %}