{% load smart_if %}

Media manager

{% if rw_access %}
Upload new file
{% endif %} {% if dirs or files or images or show_parent_dir %}
{% if show_parent_dir %} {% endif %} {% for f in dirs %} {% endfor %} {% if edit_mode %} {% for f in files %} {% endfor %} {% endif %} {% for f in images %} {% endfor %}
  Type File name Size Preview
  parent ..    
  directory {{ f.filename }}    
{% if rw_access %} {% else %}   {% endif %} file {{ f.filename }} {{ f.size }}  
{% if rw_access %} {% else %}   {% endif %} image {% if edit_mode %} {{ f.filename }} {% else %} {{ f.filename }} {% endif %} {{ f.size }} {% if edit_mode %} {% else %} {% endif %}
{% if rw_access %} {% if files or images %}
Check all / Uncheck all
{% endif %} {% endif %}
{% endif %}