{% load extra_filters_jinja %} {%- macro share(site = None, site_label = None, icon = False) -%} {% if icon == False %}{% if site_label %}{{ site_label }}{% else %}{{ site }}{% endif %}{% endif %} {%- endmacro -%} {%- macro inbox_message_snippet(message) -%}
{%- endmacro -%} {%- macro mailto_link(email) -%} {{ email }} {%- endmacro -%} {%- macro moderation_queue_message(message) -%} {%- endmacro -%} {%- macro post_vote_buttons(post = None) -%}{{ revision.author.get_anonymous_name() }}
{% else %} {{ user_card(revision.author) }} {% endif %} {% if settings.GROUPS_ENABLED %} {{ user_primary_group(revision.author) }} {% endif %} {%- endmacro -%} {%- macro post_last_updater_and_creator_info(post) -%} {% if post.wiki %}{%- if post.post_type == 'question' -%} {{ settings.WORDS_ASKED|escape }} {% elif post.post_type == 'answer' %} {{ settings.WORDS_ANSWERED|escape }} {% else %} {%- trans %}posted{% endtrans %} {% endif %} {{ timeago(post.added_at) }}
{% trans %}This post is a wiki. Anyone with karma >{{wiki_min_rep}} is welcome to improve it.{% endtrans %}
{% set id = "id_" ~ name ~ "_" ~ choice[0] %}
{% endfor %} {%- endmacro -%} {%- macro question_summary(thread, question, extra_class=None, search_state=None, visitor = None) -%} {%include "widgets/question_summary.html" %} {%- endmacro -%} {# Warning! Any changes to the comment markup here must be duplicated in post.js for the purposes of the AJAX comment editor #} {%- macro comments_widget_buttons(post = None, max_comments = None) -%} {% if post.comment_count > max_comments %} {% if settings.COMMENTS_REVERSED == False %} {% trans %}add a comment{% endtrans %} {% endif %} {% if settings.COMMENTS_REVERSED %} {% trans %}load older comments{% endtrans %} {% else %} {% trans %}see more comments{% endtrans %} {% endif %} {% else %} {% if settings.COMMENTS_REVERSED == False %} {% trans %}add a comment{% endtrans %} {% endif %} {% endif %} {%- endmacro -%} {%- macro csrf_middleware_token(csrf_token) -%} {%- endmacro -%} {%- macro comment_widget(comment, csrf_token=None) -%} {# Warning! Any changes to the comment markup must be duplicated in post.js for the purposes of the AJAX comment editor #}{{ field.errors|join(", ") }}
{% endif %} {{ field }} {% endmacro %}
{% trans %}This post is awaiting moderation{% endtrans %}
{% endif %}