{% extends "base_template.html" %} {% from "courses/admin/_form.html" import flashes, state_badge with context %} {% block title %}{{ _('Files') }}{% endblock %} {% block content %}

{{ _('Files') }}

{{ _('Everything attached anywhere in the wiki. A file is downloadable exactly when its page is readable.') }}

{{ flashes() }}
{% if course_id or kind %} {{ _('Clear') }} {% endif %}
{% for attachment in attachments %} {# The page's state, because that is what decides whether this file answers or 404s. #} {% else %} {% endfor %}
{{ _('File') }} {{ _('Page') }} {{ _('Course') }} {{ _('Readable') }} {{ _('Actions') }}
{{ attachment.name or _('Attachment') }} {% if attachment.kind == 'inline' %} {{ _('in the text') }} {% endif %} {{ attachment.page.name }} {{ attachment.page.course.name }}{{ state_badge(attachment.page) }} {{ _('Open') }}
{{ confirm_form.hidden_tag() }}
{% if course_id or kind %} {{ _('No file matches that filter.') }} {% else %} {{ _('Nothing has been attached yet. Files are uploaded from a page.') }} {% endif %}
{% endblock %}