Sha256: 3be926e48a1c3b0b3f2f034978684c1dd6559a21ef93382342dfb8aaaf585fbf

Contents?: true

Size: 747 Bytes

Versions: 3

Compression:

Stored size: 747 Bytes

Contents

<div class="page-header">
  <h2>localhost databases</h2>
</div>

<%= erb :"shared/_filter", {}, { filter_for: "databases", placeholder: "Database name" } %>

<table class="table table-striped table-hover databases">
  <thead>
  <tr>
    <th>Name</th>
    <th>Size</th>
    <th class="actions">&nbsp;</th>
  </tr>
  </thead>
  <tbody>
  <% @databases.each do |db_name, db_size| %>
    <tr>
      <td><a href="/databases/<%= db_name %>"><%= db_name %></a></td>
      <td><%= db_size %></td>
      <td>
        <a href="/databases/<%= db_name %>" class="btn btn-danger" data-method="delete" data-confirm="Are you sure?">
          <i class="icon-remove-circle"></i>
          Delete
        </a>
      </td>
    </tr>
  <% end %>
  </tbody>
</table>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
mongo_browser-0.1.3 app/views/databases/index.erb
mongo_browser-0.1.2 app/views/databases/index.erb
mongo_browser-0.1.1 app/views/index.erb