{% extends theme("layout.html") %} {% import "forms.html" as forms with context %} {% import theme("itemviews.html") as itemviews with context %} {% block views %} {{ itemviews }} {% endblock %} {% block action_bars_inner %} {% if item_name %} {% set title = _("Index of subitems of '%(item_name)s'", item_name=item_name) %} {% else %} {% set title = _("Global Index ") %} {% endif %}

{{ title }}

{{ _("Filter by content type") }} {% set unknown_items_label = _("items having unknown mime types") %} {{ gen.form.open(form, method="get", action=url_for('frontend.index', item_name=item_name)) }} {{ _("Toggle") }} {{ forms.render_submit(form) }} {{ gen.form.close() }}
{% endblock %} {% block action_bars %} {{ self.action_bars_inner() }} {% endblock %} {% set maxchars = 16 %} {% macro render_file_entry(e) %}
{% set mimetype = "application/x.moin.download" %} {{ e.relname|truncate(maxchars, true, '..') }} {% if e in dirs %} {% endif %}
{% endmacro %} {% block content %}
{{ self.action_bars() }}
{% if item_name: %}
{{ ("..") }} {{ ("/") }} {% for i in range(0, item_names|count) %} {% set fullname = item_names[:i+1]|join('/') %} {% set relname = item_names[i] %} {{ relname }} {{ ("/") }} {% endfor %}
{% endif %}

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

{% if files or dirs %}
{% if not startswith %} {{ _("Show All") }} {% else %} {{ _("Show All") }} {% endif %} {% for initial in initials %} {% if startswith == initial %} {{ initial }} {% else %} {{ initial }} {% endif %} {% endfor %}
{% 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 %} {% block body_scripts %} {{ super() }} {{ forms.file_uploader_scripts() }} {% endblock %} {% block head %} {{ super() }} {{ forms.file_uploader_styles() }} {% endblock %}