Facilitate access to the user's profile #82

Merged
Danhia merged 3 commits from :main into main 2022-10-10 21:03:10 +02:00
2 changed files with 2 additions and 2 deletions
Showing only changes of commit acf306097a - Show all commits

View File

@ -93,7 +93,7 @@
<li class="list-group-item">{% trans "Registered since" %} {{ user.date_joined|date:"Y-m-d" }}</li>
</ul>
<ul class="list-group">
<form method='GET' action="{% url 'accounts:profile' user.userprofileinfo.user %}">
<form method='GET' action="{% url 'accounts:profile' user %}">

user.userprofileinfo.user 🤔

`user.userprofileinfo.user` 🤔
<li class="list-group-item">
<input class="form-control" type="submit" value="{% trans " View my profile" %}">
</li>

View File

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