Sha256: 97d05b7f3f68e77823c8d91b1f416437356db5f7d1ddef904024320a4a8409df
Contents?: true
Size: 1.25 KB
Versions: 1
Compression:
Stored size: 1.25 KB
Contents
<% countries.each do |country| %> <% beers_count = country.beers.count breweries_count = country.breweries.count %> <% if beers_count > 0 || breweries_count > 0 %> <div> <span class='country-key'><%= country.key %></span> <%= image_tag_for_country( country ) %> <%= link_to country.title, short_country_path( country ) %> (<%= country.code %>) <span class='country-key'> - <%= beers_count %> Beers, <%= breweries_count %> Breweries </span> </div> <% end %> <!-- fix: move to beer partial or similar; not use now, thaus > 10000 --> <% if beers_count > 10000 %> <div> <% country.beers.each_with_index do |beer,i| %> <% if i > 0 %> • <% end %> <%= link_to beer.title, beer_path( beer.id ) %> <% end %> <span class="beer-count">(<%= beers_count %>)</span> </div> <% end %><!-- if beers_count > 0 --> <% if breweries_count > 10000 %> <div> <% country.breweries.each_with_index do |brewery,i| %> <% if i > 0 %> • <% end %> <%= brewery.title %> <% end %> <span class="beer-count">(<%= breweries_count %>)</span> </div> <% end %><!-- if breweries_count > 0 --> <% end %><!-- each country -->
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
beerdb-admin-0.1.1 | app/views/beer_db_admin/shared/_countries.html.erb |