diff --git a/chat/templates/inc-contact-card.html b/chat/templates/inc-contact-card.html index 402b160..fb3ff43 100644 --- a/chat/templates/inc-contact-card.html +++ b/chat/templates/inc-contact-card.html @@ -8,7 +8,7 @@ width: 20px; margin-right: 5px; background-size: cover; - background: url('/static/img/menu2.png') no-repeat 0 0; + background: url('{% static 'img/menu2.png' %}') no-repeat 0 0; } div.icon_mm2 { @@ -17,7 +17,7 @@ width: 20px; margin-right: 5px; background-size: cover; - background: url('/static/img/menu2.png') no-repeat 0 -20px; + background: url('{% static 'img/menu2.png' %}') no-repeat 0 -20px; } @@ -42,10 +42,10 @@ {% url "users:customer-profile-open-projects" pk=contact.pk as contact_url %} {% endif %}
- {% if request.user.is_contractor %} -
- {% else %} + {% if contact.is_contractor %}
+ {% else %} +
{% endif %} {{ contact.username }}