{%- macro moderated_post_warning(post) -%}
{%- endmacro -%} {%- macro used_count(count=0) -%} ×{{ count }} {%- endmacro -%} {%- macro share(site = None) -%} {%- endmacro -%} {%- macro post_flag_buttons(post) -%} {%- 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) -%}
{%- endmacro -%}
{%- macro user_website_link(user, max_display_length=25, force_show=False) -%}
{% if user.website and (force_show or (not (user.is_blocked() or user.is_watched()))) %}
{{user.website|strip_website_url|truncate(length=max_display_length, killwords=True, end='...')}}
{% endif %}
{%- endmacro -%}
{%- macro paginator(p, anchor='') -%}{# p is paginator context dictionary #}
{% filter trim %}
{% if p.is_paginated %}
0 %}
alt="{% trans new=moderation_items['new_count'], seen=moderation_items['seen_count']%}{{new}} new flagged posts and {{seen}} previous{% endtrans %}"
title="{% trans new=moderation_items['new_count'], seen=moderation_items['seen_count']%}{{new}} new flagged posts and {{seen}} previous{% endtrans %}"
{% else %}
alt="{% trans new=moderation_items['new_count'] %}{{new}} new flagged posts{% endtrans %}"
title="{% trans new=moderation_items['new_count'] %}{{new}} new flagged posts{% endtrans %}"
{% endif %}
/>
{% elif moderation_items['seen_count'] > 0 %}
{% endif %}
{% endif %}
{%- endmacro -%}
{%- macro timeago(datetime_object, action_performed=None) -%}
{%- set when=''
~ datetime_object.replace(microsecond=0)|add_tz_offset
~ ''
-%}
{%- if action_performed -%}
{# action and time can be reversed, depending on language #}
{% trans %}{{ action_performed }} {{ when }}{% endtrans %}
{%- else -%}
{{ when }}
{%- endif -%}
{%- endmacro -%}
{% macro one_shot_form_js(form=None, submit_button=None) %}
{% endmacro %}
{% macro form_field_with_errors(field) %}
{% if field.errors %}
{{ field.errors|join(", ") }}
{% endif %} {{ field }} {% endmacro %}
{% trans %}Comments{% endtrans %}