{% extends theme("layout.html") %} {% import "forms.html" as forms with context %} {% if item_name %} {% set title = _("Index of subitems of '%(item_name)s'", item_name=item_name) %} {% else %} {% set title = _("Global Index") %} {% endif %} {% block head_scripts %} {{ super() }} {% endblock %} {% block action_bars_inner %} {% endblock %} {% block action_bars %}
{{ self.action_bars_inner() }}
{% endblock %} {% set maxchars = 20 %} {% macro render_dir_entry(e) %}
{{ e.relname|truncate(maxchars, true, '..') }}
{% endmacro %} {% macro render_file_entry(e) %}
  {% set mimetype = "application/x.moin.download" %} {{ e.relname|truncate(maxchars, true, '..') }}
{% endmacro %} {% block content %}
{{ self.action_bars() }}
{% if item_name: %}

{{ title }}

{{ ("..") }} {{ ("/") }} {% for i in range(0, item_names|count) %} {% set fullname = item_names[:i+1]|join('/') %} {% set relname = item_names[i] %} {{ relname }} {{ ("/") }} {% endfor %}
{% else %}

{{ title }}

{% endif %}

{{ _("Recently uploaded items") }}

{% if files or dirs %}
{% if not startswith %} {{ _("All") }} {% else %} {{ _("All") }} {% endif %} {% for initial in initials %} {% if startswith == initial %} {{ initial }} {% else %} {{ initial }} {% endif %} {% endfor %}
{% if dirs %}

{{ _("These items have subitems that match your filter:") }}

{% for e in dirs %} {{ render_dir_entry(e) }} {% endfor %}

{% endif %} {% if files %}
{% for e in files %} {{ render_file_entry(e) }} {% endfor %}
{% endif %} {% endif %}
{% set submit_url = url_for('.jfu_server', item_name=item_name) %} {{ forms.render_file_uploader(submit_url) }}
{{ _("(Drag and drop multiple files to this white area to upload them.)") }} {% endblock %}