{% 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 %} | {{ _gettext('Name') }} | {{ _gettext('Size') }} | {% 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 %} | {{ size|filesizeformat }} | {% endif %} {% endblock %}