Sha256: cab0981c0b7f3cc3bcb78a50d053b656cf61c3108fa6883fadacc29ba26a963e

Contents?: true

Size: 940 Bytes

Versions: 2

Compression:

Stored size: 940 Bytes

Contents

<%= partial :crumbs %>

<div id="actions"> 
    <a class="prevPage">&laquo; back</a> 
    <a class="nextPage">more &raquo;</a> 
</div> 

<div class="scrollable vertical">
  <div class="items">  
    <% db_info = @connection.database_info; db_info.keys.sort.each do |db_name| %>
      <% next if skip_db?( db_name )%>
      <div id="<%=db_name%>" class="item">
        <img class="tag" src="/images/mongo3_db.png"/>        
        <p><%= db_name %></p>
        <span><%= to_mb(db_info[db_name]) %></span>
      </div>
    <% end %>
  </div>
</div>

<script>
  $( function() {
    $("div.item").click( function() {
      window.location.href = "/cltn/" + this.id;
    });
    
    $("div.scrollable").scrollable({ 
        vertical:true,  
        size:    5
    }).mousewheel();
    
    $("div.item").hover( 
      function() { $(this).addClass( "selected" ) }, 
      function() { $(this).removeClass( "selected" ) }
    );
  })
</script>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mongo3-0.0.2 lib/views/database.erb
mongo3-0.0.1 lib/views/database.erb