{% extends "admin/dj_file_browser_panel/base.html" %} {% load i18n static dcr_icons %} {% block panel_breadcrumbs %} › {% trans "File Browser" %} › {{ root.name }} {% endblock %} {% block panel_content %}
{% dcr_icon "layers" %}

{{ root.name }}

{% if total_entries %} {{ total_entries }} {% trans "ENTRIES" %} {% endif %}

{{ root.path }}

{% if error %}

{{ error }}

{% else %}

{% trans "Contents" %}

{% if entries %} {% for entry in entries %} {% endfor %} {% else %} {% endif %}
{% trans "Name" %} {% trans "Size" %} {% trans "Modified" %}
{% if entry.is_safe %} {{ entry.name }} {% else %} {{ entry.name }} {% trans "UNSAFE LINK" }} {% endif %} {% if entry.is_dir %}—{% else %}{{ entry.size_display }}{% endif %} {% if entry.modified %}{{ entry.modified|date:"Y-m-d H:i" }}{% else %}—{% endif %}

{% trans "Directory is empty" %}

{% if show_hidden %}{% trans "This directory contains no visible entries." %}{% else %}{% trans "This directory contains no entries. Dotfiles are hidden; use the toggle above to show them." %}{% endif %}

{% if entries %}
{% blocktrans with start=start_index end=end_index total=total_entries %}Showing {{ start }}–{{ end }} of {{ total }} entries{% endblocktrans %}
{% if total_pages > 1 %}
{% if has_previous %} {% trans "Previous" %} {% else %} {% trans "Previous" %} {% endif %} {% for num in page_range %} {% if num == "..." %} … {% elif num == current_page %} {{ num }} {% else %} {{ num }} {% endif %} {% endfor %} {% if has_next %} {% trans "Next" %} {% else %} {% trans "Next" %} {% endif %}
{% endif %}
{% endif %}
{% endif %} {% endblock %}