{% extends "base.html" %} {% from "partials/_macros.html" import empty_row %} {% block content %} {% if notice %}
{{ notice }}
{% endif %} {% if error %}
{{ error }}
{% endif %} {# The table renders even when ``error`` is set: a rejected create/collMod leaves the collection list perfectly readable, and blanking the page would lose the context the user needs to correct the input. #}
{% for c in collections %} {% else %} {{ empty_row(6, "No collections.") }} {% endfor %}
Name Documents Data size Index size Options Actions
{{ c.name }} {{ "{:,}".format(c.count) }} {{ c.dataSize | humanize_bytes }} {{ c.indexSize | humanize_bytes }} {% if c.options.capped %} capped {% endif %} {% if c.options.validator %} validator {% endif %}
{% endblock %}