Sha256: 7d2569f8e821753fa5b10a03146d5b5f8e76a61aefb749df5374f111bc2e75e2

Contents?: true

Size: 420 Bytes

Versions: 15

Compression:

Stored size: 420 Bytes

Contents

<% count = 1; @crumbs.each do |pair| %>
  <% clazz = (pair == @crumbs.last ? "selected" : "" )%>
  <span rel="<%=pair.last%>" class="crumb <%=clazz%>"><%=pair.first%></span>
  <% if count < @crumbs.size %>&raquo;<%end%>
<% count +=1; end %>

<script>
  $( function() {    
    $('span.crumb').click( function() {
      $.ajax( {url: $(this).attr('rel'), dataType: 'script', method: 'GET'} );
    });    
  } );
</script>

Version data entries

15 entries across 15 versions & 1 rubygems

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