{% load staticfiles %}
CKEDitor | Select an image to embed
{% if files %}
Browse for the image you want, then click 'Embed Image' to continue...
{% else %}
No images found. Upload images using the 'Image Button' dialog's 'Upload' tab.
{% endif %}
{% csrf_token %} {{ form }}
{% if show_dirs %} {% for dir in dirs %}
Images in: {{ dir }}
{% for file in files %} {% if dir in file.src %}
{% if file.visible_filename %}
{{ file.visible_filename }}
{% endif %}
{% endif %} {% endfor %} {% endfor %} {% else %} {% for file in files %}
{% if file.visible_filename %}
{{ file.visible_filename }}
{% endif %}
{% endfor %} {% endif %}