public/ng/templates/collections/index.html
<header>
<h2>{{dbName}} collections</h2>
</header>
<table-filter value="filterValue.name" placeholder="Enter collection name"></table-filter>
<table ng-show="(collections | filter:filterValue).length" class="table table-striped table-hover collections">
<thead>
<tr>
<th>Name</th>
<th>Documents</th>
<th class="actions"> </th>
</tr>
</thead>
<tbody>
<tr ng-repeat="collection in collections | orderBy:'name' | filter:filterValue"
ng-mouseleave="showActions = false"
ng-mouseenter="showActions = true">
<td>
<a href="{{collection | documentsPath}}">
{{collection.name}}
</a>
</td>
<td>{{collection.size}}</td>
<td>
<span class="actions" ng-show="showActions">
<show-button path="{{collection | documentsPath}}"></show-button>
<delete-button ng-click="delete(collection)"></delete-button>
</span>
</td>
</tr>
</tbody>
</table>
<div ng-hide="(collections | filter:filterValue).length" class="alert">
Nothing has been found.
</div>
<a href="/databases/{{dbName}}/stats" class="btn">Database stats</a>