{% extends "paxalia/base.html" %} {% load static i18n %} {% block title %}{% trans "Server Files" %} — Paxalia{% endblock %} {% block page_title %}{% trans "Server Files" %}{% endblock %} {% block page_subtitle %}{% trans "Browse and manage only the filesystem locations explicitly authorized for this dashboard." %}{% endblock %} {% block extra_css %} {% endblock %} {% block filter_bar %}
{% if listing %} {% if listing.show_hidden %}{% endif %} {% if listing.show_sensitive %}{% endif %}
{% trans "Visibility" %}
{% if listing.hidden_allowed %} {% endif %} {% if capabilities.view_sensitive_files %} {% if listing.show_sensitive %}{% trans "Protected on" %}{% else %}{% trans "Protected off" %}{% endif %} {% endif %}
{% trans "Reset" %}
{% endif %}
{% endblock %} {% block dashboard_content %}
{% if empty_roots %}

{% trans "Configuration required" %}

{% trans "No allowed locations are configured" %}

{% trans "Server Files is enabled, but this deployment has not authorized a filesystem directory. Add one or more existing, dedicated, non-overlapping directories through FILE_MANAGER_ALLOWED_ROOTS." %}

{% elif listing %}
{{ listing.root.name }} {% trans "Authorized root" %}
{% trans "Visible entries" %} {{ listing.total }}
{% trans "Refresh" %}
{% if listing.truncated %}
{% trans "Directory scan limit reached." %} {% trans "Results are intentionally bounded. Search or open a narrower directory to inspect additional entries." %}
{% endif %}
{% if capabilities.upload_server_files %}
{% trans "Upload file" %} {% trans "Add a new file without overwriting an existing name." %}
{% csrf_token %}
{% endif %} {% if capabilities.modify_server_files %}
{% trans "New folder" %} {% trans "Create an empty directory in the current location." %}
{% csrf_token %}
{% endif %}
{% if capabilities.modify_server_files or capabilities.delete_server_files %} {% endif %}

{% trans "Directory" %}

{% trans "Files and folders" %}

{% blocktrans with page=listing.page pages=listing.page_count total=listing.total %} Page {{ page }} of {{ pages }} · {{ total }} visible entries {% endblocktrans %}
{% if listing.path %} {% endif %} {% for item in listing.items %} {% empty %} {% endfor %}
{% trans "Name" %} {% trans "Type" %} {% trans "Size" %} {% trans "Modified" %} {% trans "Permissions" %} {% trans "Owner / group" %} {% trans "Actions" %}
{% trans "Parent directory" %}
{% if item.is_directory %} {{ item.name }} {% else %} {{ item.name }} {% endif %}
{{ item.kind }}{% if item.content_type %}{{ item.content_type }}{% endif %} {% if item.is_regular_file %}{{ item.size|filesizeformat }}{% else %}—{% endif %} {{ item.modified|date:"Y-m-d H:i:s T" }} {{ item.permissions }} {{ item.owner }} / {{ item.group }}
{% if item.can_preview %} {% trans "Preview" %} {% endif %} {% if item.is_regular_file and capabilities.download_server_files %} {% trans "Download" %} {% endif %} {% if capabilities.modify_server_files or capabilities.delete_server_files %} {% endif %}
{% trans "No files or folders found in this directory." %}
{% endif %}
{% endblock %} {% block page_scripts %} {% endblock %}