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