{% macro render_pagination(endpoint, pagination) %}
{% if pagination.has_prev %} {% endif %} {% for page in pagination.iter_pages(left_edge=1, left_current=1, right_current=2, right_edge=1) %} {% if page %} {% if page != pagination.page %} {{ page }} {% else %} {{ page }} {% endif %} {% else %} {% endif %} {% endfor %} {% if pagination.has_next %} {% endif %}
{% endmacro %} {% macro render_comment(comment, editform, comment_link=None, user_link=None) %}
{{ editform.csrf_token }} {{ editform.id() }}
{%if user_link%}{%endif-%}

{{ comment.user.username or "Deleted account" }}

{%-if user_link%}
{%endif%} Posted {{ comment.natural_created() }}{%if comment.created!=comment.updated%}, edited {{ comment.natural_updated() }}{%endif%}
{% if current_user.is_moderator %} {% if not comment.deleted %} {% else %} {% endif %} {% endif %} {% if comment.is_author %} {% endif %}
{% if not comment.deleted or comment.is_author or current_user.is_moderator %} {%if comment_link%}{%endif-%}

{{ comment.content }}

{%-if comment_link%}
{%endif%} {% endif %} {% if comment.is_author %} {{ editform.content(class="jsoff-show edit") }} {% endif %} {% if comment.deleted %}

[Comment banned]

{% endif %}
{% endmacro %} {% macro render_tag_input(input_field, sel_tags=[], param_dict={}) %}
{##} {{ input_field() }}
{% for tag in sel_tags %} {{ tag.content_deser }} {% endfor %}
{% endmacro %}