PR-57 Иконки идентификации в чате

У заказчика и исполнителя разные иконки в чате
remotes/origin/HEAD
booblegum 9 years ago
parent bbe7e0fc19
commit 91af4089f0
  1. 10
      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;
}
</style>
@ -42,10 +42,10 @@
{% url "users:customer-profile-open-projects" pk=contact.pk as contact_url %}
{% endif %}
<div style="display: flex; align-items: center">
{% if request.user.is_contractor %}
<div class="icon_mm1"></div>
{% else %}
{% if contact.is_contractor %}
<div class="icon_mm2"></div>
{% else %}
<div class="icon_mm1"></div>
{% endif %}
<a href="{{ contact_url }}" style="color:black;">{{ contact.username }}</a>
</div>

Loading…
Cancel
Save