{%- 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' -%} {% set action_performed=settings.WORDS_ASKED|escape %} {% elif post.post_type == 'answer' %} {% set action_performed=settings.WORDS_ANSWERED|escape %} {% else %} {%- set action_performed=gettext('posted') %} {% endif %} {{ timeago(post.added_at, action_performed=action_performed) }}
{% trans %}This post is a wiki. Anyone with karma >{{wiki_min_rep}} is welcome to improve it.{% endtrans %}
{{ timeago(revision.revised_at, action_performed=action_label) }}
{% set show_user_info = (contributor_type == 'original_author' or (contributor_type == 'last_updater' and original_author != revision.author )) %} {% if show_user_info %} {{ post_contributor_avatar_and_credentials(revision) }} {% endif %}{% 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, please do not repost the same content!{% endtrans %}
{% endif %}