{% extends 'admin/file/list.html' %} {% 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 %}
{{ delete_form.path(value=path) }} {{ delete_form.csrf_token }}
{% endif %} {% else %}
{{ delete_form.path(value=path) }} {{ delete_form.csrf_token }}
{% endif %} {%- endif -%} {% endblock %}