Add a button to view the user's profile by clicking on their score on the navbar

This commit is contained in:
UncleReaton 2022-10-10 20:37:11 +02:00
parent e304f7cd15
commit dc955fc189
1 changed files with 1 additions and 1 deletions

View File

@ -95,7 +95,7 @@
<a href="{% url 'accounts:edit' %}" class="nav-link">{{ request.user.username }}</a>
</li>
<li class="nav-item dropdown">
<span class="nav-link">{{ request.user.userprofileinfo.score }}</span>
<a class="nav-link" href="{% url 'accounts:profile' user.userprofileinfo.user %}">{{ request.user.userprofileinfo.score }}</a>
</li>
<li class="nav-item dropdown">
<a class="nav-link" href="{% url 'accounts:out' %}">{% translate "Logout" %}</a>