diff --git a/templates/post_form.html b/templates/post_form.html index fbda9802..028de0f3 100644 --- a/templates/post_form.html +++ b/templates/post_form.html @@ -242,7 +242,12 @@
{% if not config.disable_images %}
- {% trans %}Allowed file types:{% endtrans %} {{ config.allowed_ext|join(', ') }}{% if config.allowed_ext_files %}, {{ config.allowed_ext_files|join(', ') }}{% endif %}
+ {% trans %}Allowed file types:{% endtrans %}
+ {% if config.allowed_ext_op and not id %}
+ {{ config.allowed_ext_op|join(', ') }}
+ {% else %}
+ {{ config.allowed_ext|join(', ') }}{% if config.allowed_ext_files %}, {{ config.allowed_ext_files|join(', ') }}{% endif %}
+ {% endif %}
{% trans %}Max filesize is{% endtrans %} {{ config.max_filesize|filesize }}.
{% trans %}Max image dimensions are{% endtrans %} {{ config.max_height }} x {{ config.max_width }}.
{% set max_images = config.max_images %} {# workaround for "The text to be translated with "trans" can only contain references to simple variables" #}