<%= image_tag_for_country( @country, size: '64x64' ) %> <%= @country.title %> (<%= @country.code %>), <%= @country.breweries.count %> Breweries, <%= @country.beers.count %> Beers

Sort By: <%= link_to 'Key A-Z', short_country_path( @country, order: 'key' ) %> • <%= link_to 'Title A-Z', short_country_path( @country, order: 'title' ) %> • <%= link_to 'Address', short_country_path( @country, order: 'adr' ) %> • <%= link_to 'Production/Capacity (in hl)', short_country_path( @country, order: 'hl' ) %> | Style: <%= link_to 'Pocket', short_country_path( @country, style: 'pocket' ) %>

<% beers_missing_breweries = @country.beers.where( 'brewery_id is null' ).order( @order_clause ) beers_missing_breweries_count = beers_missing_breweries.count if beers_missing_breweries_count > 0 %> <% end %> <% breweries_missing_regions = @country.breweries.where( 'region_id is null').order( @order_clause ) breweries_missing_regions_count = breweries_missing_regions.count if breweries_missing_regions_count > 0 %> <% breweries_missing_regions.each do |brewery| %> <% end %> <% end %> <% @country.regions.each do |region| %> <% region.breweries.order( @order_clause ).each do |brewery| %> <% end %> <% end %>
Uncategorized <%= render_beers( beers_missing_breweries ) %>
Uncategorized (<%= @country.breweries.where( 'region_id is null').count %>)
<%= link_to brewery.title, brewery_path( brewery.id ) %> | <%= brewery.founded %> <%= render_brewery_tags( brewery ) %>
<%= brewery.address %>
<% if brewery.web.present? %> <%= link_to brewery.web, "http://#{brewery.web}" %> <% end %> <%= render_beers( brewery.beers ) %>
<%= region.key %> <%= region.title_w_synonyms %> (<%= region.breweries.count %>)
<%= link_to brewery.title, brewery_path( brewery.id ) %> | <%= brewery.founded %> <%= render_brewery_tags( brewery ) %>
<%= brewery.address %>
<% if brewery.web.present? %> <%= link_to brewery.web, "http://#{brewery.web}" %> <% end %> <%= render_beers( brewery.beers ) %>