First commit
This commit is contained in:
commit
440f5a7df4
1563 changed files with 217996 additions and 0 deletions
16
templates/partials/_profile_nav.html
Normal file
16
templates/partials/_profile_nav.html
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
{% block 'profile-nav' %}
|
||||
<div class="profile-header">
|
||||
<h2>Profil de {{ user.username }}</h2>
|
||||
<img src="/{{ user.profile.avatar }}" alt="Profile Picture" class="profile-picture">
|
||||
</div>
|
||||
<!-- On affiche le menu que si l'id du profil est égale à celui de l'utilisateur -->
|
||||
{% if user.id == request.user.id %}
|
||||
<div class="profile-nav">
|
||||
<ul>
|
||||
<li><a href="{% url 'profile' %}">Profil</a></li>
|
||||
<li><a href="{% url 'account_update' %}">Paramètre de compte</a></li>
|
||||
<li><a href="{% url 'user_courses' %}">Mes cours</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue