{% load i18n wiki_tags wiki_images_tags humanize wiki_thumbnails sekizai_tags %} {% load url from future %} {% 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 %} {% endthumbnail %} {% endwith %} {% empty %} {% endfor %}

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

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

{{ revision.get_filename }}
{% trans "No images found for this article" %}
{% if images %}

{% trans "Manage images" %} »

{% endif %}

{% 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 %}
{% if field.label %} {% endif %} {{ 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 artice and can be used only here. Other users may replace the image, but older versions are kept. You probably want to show the image with a nice caption. To achieve this, press the Insert button and fill in the caption fields and possibly choose to have you image floating right or left of the content. You can use Markdown in the caption. The markdown code syntax for images looks like this, possible values for align are left and right:" %}

[image:id align:right]
    caption indented by 4 spaces

{% endwith %}