Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Remove 'back to gym' option for new user data

Roland Geider97d69d1a025c
diff --git a/wger/gym/templates/gym/new_user.html b/wger/gym/templates/gym/new_user.html
index dd15e89fd..2750497f5 100644
--- a/wger/gym/templates/gym/new_user.html
+++ b/wger/gym/templates/gym/new_user.html
@@ -1,11 +1,21 @@
{% extends "base.html" %}
-{% load i18n %}
-{% load staticfiles %}
-{% load wger_extras %}
+{% load i18n staticfiles wger_extras django_bootstrap_breadcrumbs %}
{% block title %}{{new_user|format_username}}{% endblock %}
+{% block breadcrumbs %}
+ {{ block.super }}
+
+ {% if perms.gym.manage_gyms %}
+ {% breadcrumb "Gyms" "gym:gym:list" %}
+ {% endif %}
+ {% breadcrumb_raw new_user.userprofile.gym "gym:gym:user-list" new_user.userprofile.gym.pk %}
+ {% breadcrumb_raw new_user|format_username "core:user:overview" new_user.pk %}
+ {% breadcrumb "User" "gym:document:list" new_user.pk %}
+{% endblock %}
+
+
{% block content %}
<table class="table">
<tr>
@@ -48,14 +58,4 @@ cannot be recovered later.{% endblocktrans %}
{% trans "Export user data" %}
</a>
</p>
-
-<p>
-<a href="{% url 'gym:gym:user-list' new_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 %}