Permalink
Browse files

Merge branch 'release/v0.2.2'

  • Loading branch information...
2 parents e11d023 + a9ce07c commit 7112d898354af2d76ce91e681483d00685840465 @andzdroid andzdroid committed Apr 28, 2012
Showing with 47 additions and 28 deletions.
  1. +1 −1 package.json
  2. +44 −27 views/collection.html
  3. +2 −0 views/layout.html
View
@@ -2,7 +2,7 @@
"author": "Chun-hao Hu <hu.chunhao@gmail.com> (http://blog.huchunhao.com)",
"name": "mongo-express",
"description": "Web-based admin interface for MongoDB",
- "version": "0.2.1",
+ "version": "0.2.2",
"repository": {
"type": "git",
"url": "git://github.com/andzdroid/mongo-express.git"
View
@@ -21,33 +21,6 @@
</table>
{% endif %}
-<h2>Collection Stats</h2>
-<table class="table table-bordered table-striped">
- <tr>
- <td class="span3"><strong>Number of documents</strong></td>
- <td class="span2">{{ stats.count }}</td>
- <td class="span3"><strong>Pre-allocated space</strong></td>
- <td class="span2">{{ stats.storageSize }} bytes</td>
- </tr>
- <tr>
- <td><strong>Total document size</strong></td>
- <td>{{ stats.size }} bytes</td>
- <td><strong>Average document size</strong></td>
- <td>{{ stats.avgObjSize }} bytes</td>
- </tr>
- <tr>
- <td><strong>Number of indexes</strong></td>
- <td>{{ stats.nindexes }}</td>
- <td><strong>Padding factor</strong></td>
- <td>{{ stats.paddingFactor }}</td>
- </tr>
- <tr>
- <td><strong>Total index size</strong></td>
- <td>{{ stats.totalIndexSize }} bytes</td>
- <td><strong>Number of extents</strong></td>
- <td>{{ stats.numExtents }}</td>
-</table>
-
<h2>Delete Collection</h2>
<form method="POST" action="db/{{ collection }}" class="well">
@@ -60,3 +33,47 @@
</form>
{% endblock %}
+
+
+
+{% block sidebar %}
+<div class="sidebar-nav">
+ <ul class="nav nav-list">
+ <li class="nav-header">Collection Stats</li>
+ <li>
+ <strong>Documents</strong>
+ <span class="pull-right">{{ stats.count }}</span>
+ </li>
+ <li>
+ <strong>Total doc size</strong>
+ <span class="pull-right">{{ stats.size }} bytes</span>
+ </li>
+ <li>
+ <strong>Average doc size</strong>
+ <span class="pull-right">{{ stats.avgObjSize }} bytes</span>
+ </li>
+ <li>
+ <strong>Pre-allocated size</strong>
+ <span class="pull-right">{{ stats.storageSize }} bytes</span>
+ </li>
+ <li>&nbsp;</li>
+ <li>
+ <strong>Indexes</strong>
+ <span class="pull-right">{{ stats.nindexes }}</span>
+ </li>
+ <li>
+ <strong>Total index size</strong>
+ <span class="pull-right">{{ stats.totalIndexSize }} bytes</span>
+ </li>
+ <li>&nbsp;</li>
+ <li>
+ <strong>Padding factor</strong>
+ <span class="pull-right">{{ stats.paddingFactor }}</span>
+ </li>
+ <li>
+ <strong>Extents</strong>
+ <span class="pull-right">{{ stats.numExtents }}</span>
+ </li>
+ </ul>
+</div>
+{% endblock %}
View
@@ -49,6 +49,8 @@
{% endfor %}
</ul>
</div>
+
+ {% block sidebar %}{% endblock %}
</div>
<div class="span9">

0 comments on commit 7112d89

Please sign in to comment.