Sha256: 8aa336c93b311266a1b5bc9a4641fcca39ef20cb9637003ccd08788a5201a8c5

Contents?: true

Size: 1.12 KB

Versions: 15

Compression:

Stored size: 1.12 KB

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">
    <% @landscape.keys.sort{ |a,b| a <=> b }.each do |name|%>
      <% config = @landscape[name] %>
      <div id="<%=name%>" class="item host">
        <img class="tag" src="/images/monkey.png"/>        
        <p class="heading">
          <%= name %>
        </p>
        <% if config.has_key?(:user) %>
          <img class="lock" src="/images/lock.png"/>
        <% end %>        
        <ul class="host_info">
          <li><%=config[:host]%></li>
          <li><%=config[:port]%></li>
        </ul>                  
      </div>
    <% end %>
  </div>
</div>

<script>
  $("div.scrollable").scrollable({ 
      vertical:true,  
      size:    5
  }).mousewheel();

  $( function() {
    $("div.item").click( function() {
      window.location.href = "/db/" + this.id;
    });
        
    $("div.item").hover( 
      function() { $(this).addClass( "selected" ) }, 
      function() { $(this).removeClass( "selected" ) }
    );
  })
</script>

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
mongo3-0.1.5 lib/views/landscape.erb
mongo3-0.1.4 lib/views/landscape.erb
mongo3-0.1.3 lib/views/landscape.erb
mongo3-0.1.2 lib/views/landscape.erb
mongo3-0.1.1 lib/views/landscape.erb
mongo3-0.1.0 lib/views/landscape.erb
mongo3-0.0.9 lib/views/landscape.erb
mongo3-0.0.8 lib/views/landscape.erb
mongo3-0.0.7 lib/views/landscape.erb
mongo3-0.0.6 lib/views/landscape.erb
mongo3-0.0.5 lib/views/landscape.erb
mongo3-0.0.4 lib/views/landscape.erb
mongo3-0.0.3 lib/views/landscape.erb
mongo3-0.0.2 lib/views/landscape.erb
mongo3-0.0.1 lib/views/landscape.erb