Sha256: 5c251414149dec8b6a870963f9315a7ef9aeff19cd5fa1bc9a11f043901cad44

Contents?: true

Size: 1.38 KB

Versions: 1

Compression:

Stored size: 1.38 KB

Contents

<header>
  <h2>{{dbName}} collections</h2>
</header>

<div class="tabbable">
  <div class="tab-pane" title="Collections" ng-hide="isLoading()">
    <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">&nbsp;</th>
      </tr>
      </thead>
      <tbody>
      <tr ng-repeat="collection in collections | orderBy:'name' | filter:filterValue">
        <td>
          <a href="{{collection | documentsPath}}">
            {{collection.name}}
          </a>
        </td>
        <td>{{collection.size}}</td>
        <td class="actions">
          <delete-button ng-click="delete(collection)" />
        </td>
      </tr>
      </tbody>
    </table>

    <div ng-hide="(collections | filter:filterValue).length" class="filter alert">
      Nothing has been found.
    </div>
  </div>

  <div class="tab-pane" title="Database stats">
    <table class="table table-striped table-hover">
      <thead>
      <tr>
        <th>Property</th>
        <th>Value</th>
      </tr>
      </thead>
      <tbody>
      <tr ng-repeat="(property, value) in dbStats">
        <td>{{property}}</td>
        <td>{{value}}</td>
      </tr>
      </tbody>
    </table>
  </div>
</div>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mongo_browser-0.2.0.rc2 app/assets/templates/collections.html