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

/{{ dir_path.upper() }}

{% else %}

{{ admin_view.name.upper() }}

{% endif %}
{% set icons_by_mime = {'image': 'fa-picture-o', 'text': 'fa-file-text', 'video': 'fa-film', 'other': 'fa-file', 'archive': 'fa-save'} %} {% for name, path, is_dir, size in items %}
{% if is_dir %} {% else %} {% endif %}
{% endfor %}
{% if dir_path %} {{ actionlib.form(actions, url_for('.action_view') + "?url=" + url_for('.icon_index', path=dir_path)) }} {% else %} {{ actionlib.form(actions, url_for('.action_view') + "?url=" + url_for('.icon_index')) }} {% endif %} {% endblock %} {% block page_body %} {{ super() }} {% call lib.navbar(_("FILES"), pos="bottom") %} {% block model_menu_bar %} {% endblock %} {% endcall %} {% endblock %} {% block tail %} {{ super() }} {{ admin_lib.form_js() }} {{ actionlib.script(_gettext('Please select at least one model.'), actions, actions_confirmation) }} {% endblock %}