Sha256: fc06c31c4f2a46109dbe5839df815b7ef544565e97da28eff82f5bcac46e5153
Contents?: true
Size: 1.33 KB
Versions: 2
Compression:
Stored size: 1.33 KB
Contents
<h3><%= @continents.count %> Continents / <%= Country.where(s:true).count %> Supras / <%= Country.where(c:true).count %> Countries / <%= Country.where(d:true).count %> Territories </h3> <p> Sort By: <%= link_to 'Key A-Z', continents_path( :order => 'key' ) %> • <%= link_to 'Title A-Z', continents_path( :order => 'title' ) %> • <%= link_to 'Code A-Z', continents_path( :order => 'code' ) %> • <%= link_to 'Population', continents_path( :order => 'pop' ) %> • <%= link_to 'Area (in kmĀ²)', continents_path( :order => 'area' ) %> </p> <% Continent.all.each do |continent| %> <h4> <%= continent.title %> </h4> <% count = continent.countries.where( s: true ).count if count > 0 %> <p> <%= render_countries( continent.countries.where( s: true ), order: @order, count: count ) %> </p> <% end %> <% count = continent.countries.where( c: true ).count if count > 0 %> <p> <%= render_countries( continent.countries.where( c: true ), order: @order, count: count ) %> </p> <% end %> <% count = continent.countries.where( d: true ).count if count > 0 %> <p> <%= render_countries( continent.countries.where( d: true ), order: @order, count: count ) %> </p> <% end %> <% end %><!-- each continent -->
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
worlddb-admin-0.1.1 | app/views/world_db_admin/continents/index.html.erb |
worlddb-admin-0.1.0 | app/views/world_db_admin/continents/index.html.erb |