Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Show name of gym in the trainer login banner

Roland Geider931d5fa4c29b
diff --git a/wger/core/templates/base.html b/wger/core/templates/base.html
index 648375bc4..32723f42d 100644
--- a/wger/core/templates/base.html
+++ b/wger/core/templates/base.html
@@ -5,7 +5,9 @@
{% blocktrans with current_user=user|format_username %}You are
browsing the site as the user "{{current_user}}", all actions are performed on his data.
{% endblocktrans %}
- <a href="{% url 'core:user:trainer-login' trainer_identity %}" class="alert-link">{% trans "Back to own profile" %}</a>
+ <a href="{% url 'core:user:trainer-login' trainer_identity %}" class="alert-link">
+ {% blocktrans with target=user.userprofile.gym.name %}Back to "{{ target }}"{% endblocktrans %}
+ </a>
</div>
{% endif %}
<h2 id="page-title" class="page-header">{% block title %}{% endblock %}</h2>