{% macro render_attachment_info(obj) -%} {% if not obj.attachment_count %} {% trans %}None{% endtrans %} {% else %} {% trans count=obj.attachment_count -%} {{ count }} file {%- pluralize -%} {{ count }} files {%- endtrans %} {% endif %} {%- endmacro %}