{% load i18n wiki_tags wiki_images_tags humanize wiki_thumbnails sekizai_tags %} {% addtoblock "js" %} {% endaddtoblock %} {% with article|images_for_article as images %}
{% for image in images %} {% with image.current_revision.imagerevision as revision %} {% thumbnail revision.image "50x50" crop="center" as thumb %}

{% trans "Image id" %}: {{ image.id }}

{{ revision.get_filename }}

{% trans "Insert" %}
{% if image|can_write:user %} {% trans "Replace" %} {% endif %}

{% endthumbnail %} {% endwith %} {% empty %} {% trans "No images found for this article" %} {% endfor %}

{% trans "Manage images" %} »


{% trans "Add new image" %}

{% if article|images_can_add:user %} {% if form.non_field_errors %} {% if form_error_title %}

{{ form_error_title }}

{% endif %} {% for error_message in form.non_field_errors %}
{{ error_message }}
{% endfor %} {% endif %} {# Include the hidden fields #} {% for hidden in form.hidden_fields %} {{ hidden }} {% endfor %}

{% for field in form.visible_fields %}

{{ field }} {% if field.errors %}
{% for error in field.errors %}
{{ error }}
{% endfor %}
{% endif %}
{% if field.help_text %}

{{ field.help_text|safe }}

{% endif %} {% endfor %}

{% else %} {% if user.is_anonymous %} {% include "wiki/includes/anonymous_blocked.html" %} {% else %}

{% trans "You do not have permissions to add images." %}

{% endif %} {% endif %}

{% trans "How to use images" %}

{% trans "After uploading an image, it is attached to this particular article and can be used only here. Other users may replace the image, but older versions are kept. To show the image press the Insert button and select the options you want to use. You can use Markdown in the caption. The Markdown code syntax for images looks like this" %}

[image:id align:right size:orig]
    caption indented by 4 spaces
{% trans "Possible values for align are" %}
left | right
{% trans "Possible values for size are" %}
small | medium | large | orig | default

{% endwith %}