Skip to content

Commit

Permalink
user default photo
Browse files Browse the repository at this point in the history
  • Loading branch information
mexmonjonovuz committed Nov 9, 2024
1 parent 413ab47 commit 38ae73d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions templates/apps/parts/_header.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,17 @@
<a class="nav-link pe-0" id="navbarDropdownUser" href="#" role="button" data-bs-toggle="dropdown"
aria-haspopup="true" aria-expanded="false">
<div class="avatar avatar-xl" bis_skin_checked="1">
<img class="rounded-circle" src="{{ user.image.url }}
{% if user.is_anonymous %}
<img class="rounded-circle" src="{% static 'apps/defaul_image.jpeg' %}" alt="card">
{% else %}
<img class="rounded-circle" src="{{ user.image.url }}
" alt="card">
{% endif %}
</div>
</a>
<div class="dropdown-menu dropdown-menu-end py-0" aria-labelledby="navbarDropdownUser">
<div class="bg-white dark__bg-1000 rounded-2 py-2">
<a class="dropdown-item" href="
{% if not user.is_authenticated %}{% url 'login_page' %}{% else %}{% url 'profile_page' %}{% endif %}">
{% trans 'Profile' %}</a>
{% if user.is_authenticated %}
Expand Down

0 comments on commit 38ae73d

Please sign in to comment.