summaryrefslogtreecommitdiffstats
path: root/askbot/skins/default/templates/email/post_as_subthread.html
blob: 9b6eb728a016c3a1f14de08fd26eff4100245b4b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{% 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 %}