<% breweries = @breweries %>

<%= Brewery.count %> Breweries

Sort By: <%= link_to 'Key A-Z', breweries_path( order: 'key' ) %> • <%= link_to 'Title A-Z', breweries_path( order: 'title' ) %> • <%= link_to 'Production/Capacity (in hl)', breweries_path( order: 'hl' ) %>

<% breweries.each do |brewery| %> <% end %>
<%= brewery.key %> <%= link_to_brewery( brewery ) %> <% if brewery.synonyms.present? %> | <%= brewery.synonyms %> <% end %> <%= render_brewery_tags( brewery ) %> <%= render_world_tree( brewery, flag: true ) %>
<%= render_beers( brewery.beers ) %>