summaryrefslogtreecommitdiffstats
path: root/askbot/templates/email/post_as_subthread.html
blob: 4a4bd047d5001adb3e032b59976404ecbd24928c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{% from "email/macros.html" import quoted_post %}

{% if post.post_type in ('question', 'answer') %}
    {{ quoted_post(post) }}
    {% set comments = post.get_cached_comments() %}
    {% if comments %}
        <p>
            {% trans count=comments|length -%}
                {{ comment }} comment:
            {%- pluralize -%}
                {{ count }} comments:
            {%- endtrans -%}
        </p>
        {% for comment in comments %}
            {{ quoted_post(comment, quote_level = 1) }}
        {% endfor %}
    {% endif %}
{% endif %}