{% extends 'layout.html' %} {% block title %}{{ collectionName }}{% endblock %} {% block breadcrumb %} {% endblock %} {% block content %} {% if !settings.read_only %} {% endif %}
{% for column in columns %} {% endfor %}
{% for column in columns %} {% endfor %}
{% if !settings.read_only && !settings.no_delete && count > 0 %}
{# Router is smart enough to transform method=POST + _method=delete into actual HTTP DELETE, which is what we want #}
{% endif %}
{% if !settings.read_only %} {% endif %} {% if documents.length == 0 %}

No documents found.

{% else %} {% if pagination %} {% endif %}
{% for column in columns %} {% endfor %} {% for index, document in docs %} {% if document._id._bsontype == 'Binary' %} {% elseif document._id._bsontype == 'Long' %} {% else %} {% endif %} {% for column in columns %} {% endfor %} {% endfor %}
{{column}} {% if sort[column] == 1 %} {% elseif sort[column] == -1 %} {% endif %}
{% if !settings.read_only && !settings.no_delete && column === '_id' && collectionName !== 'system.indexes' %}
{% endif %} {% if document[column] | is_URL %} {{ document[column] }} {% else %} {{ document[column] | stringDocIDs | to_display | safe }} {% endif %}
{% if pagination %} {% endif %} {% endif %} {% if !settings.read_only %}

Rename Collection

{{ dbName }} .
{% endif %}

Tools

{% if !settings.me_no_export %} {% endif %} {% if !settings.read_only %} {% if !settings.no_delete %}
{% endif %} {% endif %}
{% if !settings.no_delete %} {% endif %} {% if stats != false %}

Collection stats

Documents {{ stats.count }}
Total doc size {{ stats.size|convertBytes }}
Average doc size {{ stats.avgObjSize|convertBytes }}
Pre-allocated size {{ stats.storageSize|convertBytes }}
Indexes {{ stats.nindexes }}
Total index size {{ stats.totalIndexSize|convertBytes }}
Padding factor {{ stats.paddingFactor }}
Extents {{ stats.numExtents }}

Indexes

{% for index in indexes %} {% if !settings.read_only && !settings.no_delete %} {% else %} {% endif %} {% endfor %}
Name Columns Size Attributes Actions
{{ index.name }} {% for sort in index.key %}
{{ loop.key }}   {% if sort == 1 %} ASC {% else %} DSC {% endif %}
{% endfor %}
{{ index.size|convertBytes }} {% for k,v in index %}
{% if k != 'key' && k != 'v' && k != 'name' && k != 'ns' && k != 'size' %} {{ k }}: {% if k == 'partialFilterExpression' %}
{{ v | json | safe }}
{% else %}  {{ v }} {% endif %} {% endif %}
{% endfor %}
Delete
{% endif %} {% endblock %} {% block scripts %} {% endblock %}