{%- macro user_score_and_badge_summary(user) -%} {{user.reputation}} {% if user.gold or user.silver or user.bronze %} {% if user.gold %} ● {{user.gold}} {% endif %} {% if user.silver %} ● {{user.silver}} {% endif %} {% if user.bronze %} ● {{user.bronze}} {% endif %} {% endif %} {%- endmacro -%} {%- macro user_long_score_and_badge_summary(user) -%} {% trans %}karma:{% endtrans %} {{user.reputation}} {% if user.gold or user.silver or user.bronze %} {% trans %}badges:{% endtrans %} {% if user.gold %} ● {{user.gold}} {% endif %} {% if user.silver %} ● {{user.silver}} {% endif %} {% if user.bronze %} ● {{user.bronze}} {% endif %} {% endif %} {%- endmacro -%} {%- macro paginator(p) -%}{# p is paginator context dictionary #} {% spaceless %} {% if p.is_paginated %}
{% trans %}community wiki{% endtrans %}
{% trans rev_count=post.revisions.all()|length %}{{rev_count}} revision{% pluralize %}{{rev_count}} revisions{% endtrans %}
{{post.author.get_profile_link()}}
{% else %}{# todo: access to class names needs to be removed here #} {% if post.__class__.__name__=="Question" %} {% trans %}asked{% endtrans %} {% elif post.__class__.name__=="Answer" %} {% trans %}answered{% endtrans %} {% else %} {% trans %}posted{% endtrans %} {% endif %} {% if post.__class__.__name__ in ('QuestionRevision', 'AnswerRevision') %} {{post.revised_at|diff_date}} {% else %} {{post.added_at|diff_date}} {% endif %}
{{ gravatar(post.author, 32) }}{{post.author.get_profile_link()}}
{{ user_score_and_badge_summary(post.author) }}
{% trans %}updated{% endtrans %} {{ last_edited_at|diff_date }}
{% if original_author != display_author or is_wiki %} {{ gravatar(update_author, 32) }}{{update_author.get_profile_link()}}
{{ user_score_and_badge_summary(update_author) }}