{% extends "cranefly/profiles/profile.html" %} {% import "cranefly/macros.html" as macros with context %} {% block title %}{{ macros.page_title(_('Warnings'), profile.username) }}{% endblock %} {% block tab %}

{% if items_total -%} {%- trans count=items_total, total=items_total|intcomma, username=profile.username -%} {{ username }} received one warning {%- pluralize -%} {{ username }} received {{ total }} warnings {%- endtrans -%} {%- else -%} {% trans username=profile.username %}{{ username }} received no warnings{% endtrans %} {%- endif %}

{% if items_total %}
{% for item in items %} {{ item.reason }}
{% endfor %} {{ pager() }}
{% endif %} {% endblock %} {% macro pager() -%} {% if pagination['total'] > 1 %} {% endif %} {%- endmacro %}