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

{{ _('Pages') }}

{{ _('Everything written in this wiki, most recently edited first.') }}

{{ flashes() }} {# GET, so a filtered list is a URL somebody can send to a colleague. #}
{% if term or course_id %} {{ _('Clear') }} {% endif %}
{% for page in pages %} {% else %} {% endfor %}
{{ _('Page') }} {{ _('Course') }} {{ _('Section') }} {{ _('State') }} {{ _('Last edited') }} {{ _('Actions') }}
{{ page.name }} {{ page.course.name }} {{ page.category.name if page.category else '—' }} {{ state_badge(page) }} {{ (page.updated_at or page.created_at) | course_datetime }} {{ _('View') }} {{ _('History') }}
{% if term or course_id %} {{ _('No page matches that. Try a shorter word, or clear the filter.') }} {% else %} {{ _('There are no pages yet.') }} {% endif %}
{% if pages | length >= 200 %} {# Said out loud rather than truncating in silence: a list that stops at two hundred without saying so reads as "that is all there is". #} {% endif %}
{% endblock %}