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

View File

@ -79,7 +79,7 @@
<td>No</td> <td>No</td>
{% endif %} {% endif %}
<td> <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> </td>
</tr> </tr>
</li> </li>