{% macro quoted_post( post=None, quote_level=0, format=None, is_leaf_post=False ) %} {% spaceless %} {{ start_quote(quote_level) }} {% if post.is_anonymous %} {% set author = post.author.get_name_of_anonymous_user()|escape %} {% else %} {% set author = post.author.username|escape %} {% endif %} {% if post.post_type == 'question' %} {% if quote_level > 0 %}

{% else %}

{% endif %} {% if format == 'parent_subthread' %} {% if is_leaf_post %} {% trans %}Started by {{ author }}:{% endtrans %} {% else %} En réponse à {{ author }}: {% endif %} {% else %} {{ settings.WORDS_QUESTION_SINGULAR|title|escape }} : {% endif %} {{ post.thread.title }}

{% if quote_level > 0 %}

{% if format != 'parent_subthread' %} {% trans %}Started by {{ author }}:{% endtrans %} {% endif %}

{% endif %} {% set tag_names = post.get_tag_names() %} {% if tag_names %}

{% trans %}Tags:{% endtrans %} {{ tag_names|join(', ') }}.

{% endif %} {% elif post.post_type == 'answer' %}

{% if format == 'parent_subthread' %} {% if is_leaf_post %} {% trans -%} {{ author }}'s response: {%- endtrans %} {% else %} En réponse à {{ author }}: {% endif %} {% else %} {% trans %}Replied by {{ author }}:{% endtrans %} {% endif %}

{% else %}

{% if format == 'parent_subthread' %} {% if is_leaf_post %} {% trans -%} {{ author }}'s comment: {%- endtrans %} {% else %} {% trans -%} In reply to {{ author }}'s comment: {%- endtrans %} {% endif %} {% else %} {% trans author -%} Commented by {{ author }}: {%- endtrans %} {% endif %}

{% endif %} {{ post.html }} {{ end_quote(quote_level) }} {% endspaceless %} {% endmacro %} {% macro start_quote(level = 0) %} {% for number in range(level) %}
{% endfor %} {% endmacro %} {% macro end_quote(level = 0) %} {% for number in range(level) %}
{% endfor %} {% endmacro %} {% macro heading_style() %} font-size:14px;font-weight:bold;margin-bottom:0px; {% endmacro %} {% macro fine_print_style() %} font-size:8px;color:#aaa;margin-bottom:0px; {% endmacro %}