{% load avatar_tags i18n seahub_tags %}

{% for key,value in msgs %}
{% with not_read=value.not_read %}
<tr data-href="{% url 'user_msg_list' key|id_or_email %}" class="{% if not_read > 0 %}bold{% endif %}">
    <td class="alc">{% avatar key 20 %}</td>
    <td>{{ key|email2nickname }}{% if not_read > 0%}({{not_read}}){% endif %}</td>
    <td>{{ value.last_msg|seahub_urlize|truncatewords_html:12 }}</td>
    <td>{{ value.last_time|translate_seahub_time }}</td>
</tr>
{% endwith %}
{% endfor %}
