Sha256: 5685915c42587559a7d84428c43076dd8177684fa2185d2c1195a6a352a22682

Contents?: true

Size: 703 Bytes

Versions: 2

Compression:

Stored size: 703 Bytes

Contents


<h3><%= @countries.count %> Territories / <%= City.count %> Cities</h3>

<p>
  All
   <span class='country-count'>
    (<%= @countries.count %>)
   </span>
<% Continent.all.each do |continent| %>
    &bull; 
   <%= continent.title %>
   <span class='country-count'>
      (<%= continent.countries.where( d: true ).count %>)
   </span>
<% end %>
</p>



<p>
  Sort By: <%= link_to 'A-Z', territories_path( :order => 'title' )  %>
          &bull;
        <%= link_to 'Population', territories_path( :order => 'pop' ) %>
          &bull;
        <%= link_to 'Area (in kmĀ²)', territories_path( :order => 'area' ) %>
</p>



<%= render :partial => 'countries', :locals => { :countries => @countries } %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
worlddb-admin-0.1.1 app/views/world_db_admin/countries/index_territories.html.erb
worlddb-admin-0.1.0 app/views/world_db_admin/countries/index_territories.html.erb