{% extends 'shelf-admin/master.html' %} {% import 'shelf-admin/lib.html' as lib with context %} {% import 'shelf-admin/actions.html' as actionlib with context %} {% block body %}
{% if dir_path %}

/{{ dir_path.upper() }}

{% else %}

{{ admin_view.name.upper() }}

{% endif %}
{% block file_list_table %} {% block list_header scoped %} {% if actions %} {% endif %} {% endblock %} {% for name, path, is_dir, size in items %} {% block list_row scoped %} {% if actions %} {% endif %} {% if is_dir %} {% else %} {% endif %} {% endblock %} {% endfor %}
Name Size  
{% if not is_dir %} {% endif %} {{ name }} {% set icons_by_mime = {'image': 'fa-picture-o', 'text': 'fa-file-text', 'video': 'fa-film', 'other': 'fa-file', 'archive': 'fa-save'} %} {{ name }} {{ size }} {% block list_row_actions scoped %} {% if admin_view.can_rename and path and name != '..' %} {% endif %} {%- if admin_view.can_delete and path -%} {% if is_dir %} {% if name != '..' and admin_view.can_delete_dirs %}
{% endif %} {% else %}
{% endif %} {%- endif -%} {% endblock %}
{% endblock %}
{{ actionlib.form(actions, url_for('.action_view')) }} {% endblock %} {% block bottom %} {% endblock %} {% block tail %} {{ super() }} {{ actionlib.script(_gettext('Please select at least one model.'), actions, actions_confirmation) }} {% endblock %}