summaryrefslogtreecommitdiffstats
path: root/askbot/templates/group_messaging/threads_list.html
blob: 8469198c3910fd57e82b47ca037c78f800c81f0e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<table class="threads-list">
{% if threads %}
    {% for thread in threads %}
        {% set thread_data = threads_data[thread.id] %}
        <tr class="thread-heading {{ thread_data['status'] }}"
            data-thread-id="{{ thread.id }}"
        >
            <td class="senders">{{ thread_data['senders_info']|escape }}</td>
            <td class="subject">{{ thread.headline|escape }}</td>
            <td class="timestamp">{{ thread.last_active_at|timesince }}</td>
        </tr>
    {% endfor %}
{% else %}
    <tr>
        <td class="empty" colspan="3">{% trans %}there are no messages yet...{% endtrans %}<td>
    </tr>
{% endif %}
</table>