{% extends 'layout.html' %} {% block title %}{{ collectionName }}{% endblock %} {% block styles %} {% if editorTheme != "default" %} {% endif %} {% endblock %} {% block breadcrumb %}
  • Database:
  • Collection:
  • {% 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 documents.length == 0 %}

    No documents found.

    {% else %} {% if pagination %} {% endif %}
    {% for column in columns %} {% endfor %} {% for document in docs %} {% if document._id._bsontype == 'Binary' %} {% 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 %} {{ document[column] | stringDocIDs | to_display | safe }}
    {% 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 %}

    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 }}:  {{ v }} {% endif %}
    {% endfor %}
     DEL
    {% endblock %} {% block scripts %} {% endblock %}