{% extends 'admin/master.html' %} {% import 'admin/lib.html' as lib with context %} {% import 'admin/actions.html' as actionslib with context %} {% block body %} {% block breadcrums %}
{% endblock %} {% block file_list_table %}{% endif %} | {% for column in admin_view.column_list %} | {% if admin_view.is_column_sortable(column) %} {% if sort_column == column %} {{ admin_view.column_label(column) }} {% if sort_desc %} {% else %} {% endif %} {% else %} {{ admin_view.column_label(column) }} {% endif %} {% else %} {{ _gettext(admin_view.column_label(column)) }} {% endif %} | {% endfor %} {% endblock %}||||
---|---|---|---|---|---|---|
{% if not is_dir %} {% endif %} | {% endif %}{% block list_row_actions scoped %} {% if admin_view.can_rename and path and name != '..' %} {%- if admin_view.rename_modal -%} {{ lib.add_modal_button(url=get_url('.rename', path=path, modal=True), title=_gettext('Rename File'), content='') }} {% else %} {%- endif -%} {% endif %} {%- if admin_view.can_delete and path -%} {% if is_dir %} {% if name != '..' and admin_view.can_delete_dirs %} {% endif %} {% else %} {% endif %} {%- endif -%} {% endblock %} | {% if is_dir %}{{ name }} | {% else %}{% if admin_view.can_download %} {%- if admin_view.edit_modal and admin_view.is_file_editable(path) -%} {{ lib.add_modal_button(url=get_file_url(path, modal=True)|safe, btn_class='', content=name) }} {% else %} {{ name }} {%- endif -%} {% else %} {{ name }} {% endif %} | {% if admin_view.is_column_visible('size') %}{{ size|filesizeformat }} | {% endif %} {% endif %} {% if admin_view.is_column_visible('date') %}{{ timestamp_format(date) }} | {% endif %} {% endblock %}