Sha256: 3964fff3595a8959e2056069f5c82706eae4e57135d77b1293b40fde1707ac3f
Contents?: true
Size: 955 Bytes
Versions: 4
Compression:
Stored size: 955 Bytes
Contents
<h3>Regions</h3> <table> <% @regions.each do |region| %> <% count = region.beers.count if count > 0 %> <tr> <td> <span class='region-key'><%= region.key %></span> <%= region.title %> / <%= image_tag_for_country( region.country ) %> <%= link_to region.country.title, short_country_path( region.country ) %> </td> </tr> <tr> <td> <% region.beers.each_with_index do |beer,i| %> <% if i > 0 %> • <% end %> <%= link_to beer.title, beer_path(beer.id) %> <% end %> <span class="beer-count">(<%= count %>)</span> </td> </tr> <% breweries_count = region.breweries.count if breweries_count > 0 %> <tr> <td> <% region.breweries.each_with_index do |brewery,i| %> <% if i > 0 %> • <% end %> <%= brewery.title %> <% end %> <span class="beer-count">(<%= breweries_count %>)</span> </td> </tr> <% end %> <% end %> <% end %> </table>
Version data entries
4 entries across 4 versions & 1 rubygems