Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

No need to duplicate the <li> element

Roland Geider4a48716d3521
diff --git a/manager/templates/base.html b/manager/templates/base.html
index f79dfcd19..c4c5fd2e4 100644
--- a/manager/templates/base.html
+++ b/manager/templates/base.html
@@ -54,11 +54,13 @@
<ul style="float:right;">
+ <li {% if active_tab == 'user' %}class="active"{% endif %}>
{% if not user.username %}
- <li><a href="{% url manager.views.login %}">{% trans "Login" %}</a></li>
+ <a href="{% url manager.views.login %}">{% trans "Login" %}</a>
{% else %}
- <li {% if active_tab == 'user' %}class="active"{% endif %}><a href="{% url manager.views.preferences %}">{% trans "My preferences" %}: {{ user.username }}</a></li>
+ <a href="{% url manager.views.preferences %}">{% trans "My preferences" %}: {{ user.username }}</a>
{% endif %}
+ </li>
</ul>
</div>
</div>