|
|
|
|
@ -3,6 +3,12 @@ |
|
|
|
|
{% load user_tags %} |
|
|
|
|
{% load activeurl %} |
|
|
|
|
|
|
|
|
|
{% if request.user.is_contractor %} |
|
|
|
|
{% url 'users:contractor-profile' pk=request.user.pk as profile_url %} |
|
|
|
|
{% elif request.user.is_customer %} |
|
|
|
|
{% url 'users:customer-profile-open-projects' pk=request.user.pk as profile_url %} |
|
|
|
|
{% endif %} |
|
|
|
|
|
|
|
|
|
<div class="wrTop {% if request.user.is_authenticated %} disTab {% endif %}"> |
|
|
|
|
<div class="container-fluid topMain"> |
|
|
|
|
<div class="row"> |
|
|
|
|
@ -62,7 +68,7 @@ |
|
|
|
|
<div class="col-lg-2"> |
|
|
|
|
<div class="imgProfile"> |
|
|
|
|
{% if request.user.is_contractor %} |
|
|
|
|
<a href="{% url 'users:contractor-profile' pk=request.user.pk %}"> |
|
|
|
|
<a href="{{ profile_url }}"> |
|
|
|
|
{% if request.user.avatar %} |
|
|
|
|
{% thumbnail request.user.avatar "75x75" crop="center" as im %} |
|
|
|
|
<img src="{{ im.url }}" alt="profile-image"> |
|
|
|
|
@ -72,7 +78,7 @@ |
|
|
|
|
{% endif %} |
|
|
|
|
</a> |
|
|
|
|
{% elif request.user.is_customer %} |
|
|
|
|
<a href="{% url 'users:customer-profile-open-projects' pk=request.user.pk %}"> |
|
|
|
|
<a href="{{ profile_url }}"> |
|
|
|
|
{% if request.user.avatar %} |
|
|
|
|
{% thumbnail request.user.avatar "75x75" crop="center" as im %} |
|
|
|
|
<img src="{{ im.url }}" alt="profile-image"> |
|
|
|
|
@ -106,6 +112,11 @@ |
|
|
|
|
</a> |
|
|
|
|
</li> |
|
|
|
|
{% endif %} |
|
|
|
|
<li class="icon_mm3"> |
|
|
|
|
<a href="{{ profile_url }}"> |
|
|
|
|
Профиль<span></span> |
|
|
|
|
</a> |
|
|
|
|
</li> |
|
|
|
|
<li class="icon_mm3"> |
|
|
|
|
<a href="{% url 'chat:chat-user' %}">Сообщения<span></span></a> |
|
|
|
|
</li> |
|
|
|
|
|