summaryrefslogtreecommitdiffstats
path: root/askbot/templates/user_inbox/responses.html
blob: dd27ef0650bf241fa4f13127fe856de12ba8f54f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{% extends "user_inbox/base.html" %}
{% import "macros.html" as macros %}
{% block profilesection %}
    {% trans %}inbox - moderation queue{% endtrans %}
{% endblock %}
{% block inbox_content %}
    <div class="messages">
    {% for message in messages %}{# messages are grouped by question, using the "nested_messages" #}
        <div class="message{% if message.is_new %} highlight new{% else %} seen{% endif %}"
            data-message-id="{{ message.id }}"
        >
            <h2>"{{ message.title.strip()|escape}}"</h2>
            {{ macros.inbox_message_snippet(message) }}
        </div>
        {# "nested" messages are further response messages to the same question #}
        {% for followup_message in message.followup_messages %}
            <div class="message{% if message.is_new %} highlight new{% else %} seen{% endif %}"
                data-message-id="{{ message.id }}"
            >
                {{ macros.inbox_message_snippet(followup_message) }}
            </div>
        {% endfor %}
    {% endfor %}
    </div>
{% endblock %}