{% 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 %}
{% 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 %}
{% if dir_path %} {{ actionlib.form(actions, url_for('.action_view') + "?url=" + url_for('.index', path=dir_path)) }} {% else %} {{ actionlib.form(actions, url_for('.action_view') + "?url=" + url_for('.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 %}