blue contact button means last message is speaker

This commit is contained in:
Élie Bouttier 2016-09-18 21:02:25 +02:00
parent 97a8f31409
commit 04d3dc99f4
1 changed files with 1 additions and 1 deletions

View File

@ -79,7 +79,7 @@
<td>No</td>
{% endif %}
<td>
<a class="btn btn-primary" href="{% url 'conversation' speaker.user.username %}">{% trans "Contact" %}</a>
<a class="btn btn-{% if speaker.conversation.messages.last.author == speaker.user %}primary{% else %}default{% endif %}" href="{% url 'conversation' speaker.user.username %}">{% trans "Contact" %}</a>
</td>
</tr>
</li>