Self hosted FLOSS fitness/workout, nutrition and weight tracker
Add conditional display for registration link in navigation
Matthew Harrison4e5f486bb1e7
diff --git a/wger/core/templates/navigation.html b/wger/core/templates/navigation.htmlindex df635447c..00f0d28df 100644--- a/wger/core/templates/navigation.html+++ b/wger/core/templates/navigation.html@@ -281,7 +281,7 @@<li class="dropdown nav-item"><a href="#" class="dropdown-toggle nav-link text-white"data-bs-toggle="dropdown">- {% translate "Login" %} / {% translate "Register" %}+ {% translate "Login" %}{% if allow_registration %} / {% translate "Register" %}{% endif %}<span class="caret"></span></a><ul class="dropdown-menu">@@ -290,12 +290,14 @@{% translate "Login" %}</a></li>+ {% if allow_registration %}<li><a class="dropdown-item"href="{% url 'core:user:registration' %}">{% translate "Register" %}</a></li>+ {% endif %}<li><a class="dropdown-item"href="{% url 'core:user:password_reset' %}">