{% macro render_thread(thread, current_user) -%} {% if thread.locked %}

{{ _("This thread has been locked by a moderator.") }}

{% endif %} {% if current_user.is_authenticated %}
{{ current_user.display_name }}
{% if not current_user.canCommentRL() %}

{% elif not thread.checkPerm(current_user, "COMMENT_THREAD") %}
{% if thread.locked %}
{% else %}
{% endif %}
{% else %}

{% endif %}
{% endif %} {% endmacro %} {% macro render_threadlist(threads, compact=False) -%} {% for t in threads %} {% if compact %} {% if t.private %}🔒 {% endif %} {{ t.title }} by {{ t.author.display_name }} {% else %}
{% if not t.review and t.private %} {% elif not t.review %} {% elif t.review.recommends %} {% else %} {% endif %} {{ t.title }} by {{ t.author.display_name }}
{% if t.package %} {{ _("%(title)s by %(author)s", title="" | safe + t.package.title + "" | safe, author=t.package.author.display_name) }} {% endif %}
{{ t.created_at | datetime }}
{% endif %}
{% else %}

No threads found

{% endfor %} {% endmacro %}