Sha256: 35d9396a4321bf6c778d73f31199f91ea2ec00172f009db1f4ffebced1944104
Contents?: true
Size: 1.3 KB
Versions: 1
Compression:
Stored size: 1.3 KB
Contents
-count=0 -skip = params[:skip].to_i %div(data-role="page") %div(data-role="header") %h1 Collection: &=@database.name+" / #{@collection.name}" %div{:"data-role" => "navbar"} %div{:"data-role" => "controlgroup", :"data-type" => "horizontal"} %form(action="/database/#{@database.name}/#{@collection.name}/delete" method="post" style="display: inline") %input(type="submit" data-role="button" value="Drop Collection" data-theme="a") %div(data-role="content") -if skip == 0 %h1 Info -normalize_stats(@collection.stats).each do |k,v| %b &="#{k}=" &=v %br %h1 Documents -document_list(@collection).each do |document| -count+=1 %div(data-role="collapsible" data-collapsed=true) %h1 &= document["_id"] +" "+ (document["name"] || document["title"] || document["description"] || document["message"] || "") -document.each do |k,v| %b &="#{k}=" &= v %br %div(data-role="footer") -if skip > 0 %a(href="/database/#{@database.name}/#{@collection.name}?skip=#{params[:skip].to_i-25}") Previous -if count >= 25 %a(href="/database/#{@database.name}/#{@collection.name}?skip=#{params[:skip].to_i+25}") Next
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mongobile-0.0.4 | lib/mongobile/views/database/collection.haml |