{%- set current_prefix = current_prefix if current_prefix is defined else request.args.get('prefix', '') -%} {%- set current_search = current_search if current_search is defined else request.args.get('search', '') -%}
{# breadcrumb — uses the same current_prefix as the hidden input above #}
Select rows for bulk actions
{# Parent navigation row — only when we're inside a sub-prefix. Computes the parent by stripping the last path segment. #} {%- set _stripped = current_prefix.rstrip('/') if current_prefix else '' -%} {% if _stripped %} {%- if '/' in _stripped -%} {%- set _parent_prefix = _stripped.rsplit('/', 1)[0] + '/' -%} {%- else -%} {%- set _parent_prefix = '' -%} {%- endif -%} {% endif %} {# Folder rows first (Finder convention). #} {% for p in FS3V_PREFIXES %} {% if p %} {% endif %} {% endfor %} {# File rows. #} {% for c in FS3V_CONTENTS %} {% if c %} {% endif %} {% endfor %} {# Empty state row when neither folders nor files exist (after filtering Nones). #} {%- set non_null_prefixes = FS3V_PREFIXES | select | list -%} {%- set non_null_contents = FS3V_CONTENTS | select | list -%} {% if not non_null_prefixes and not non_null_contents %} {% endif %}
Name Size Modified
..
{%- set folder_basename = p['Prefix'].rstrip('/').rsplit('/', 1)[-1] + '/' -%} {{ folder_basename }}
{%- set file_basename = c['Key'].rsplit('/', 1)[-1] -%} {% if FS3V_OBJECT_HOSTNAME %} {%- set object_prefix = FS3V_OBJECT_BASE_PATH ~ '/' if FS3V_OBJECT_BASE_PATH else '' -%} {{ file_basename }} {% else %} {{ file_basename }} {% endif %} {{ humansize(c['Size']) }} {{ format_datetime(c['LastModified']) }}
No files or folders in this prefix.
{% include '_pagination.html' %}