Sha256: c55cf5f9c21b257ea56cad0c6792d10e5a2df13f05ab7717430f674f0d90f5df
Contents?: true
Size: 969 Bytes
Versions: 2
Compression:
Stored size: 969 Bytes
Contents
<h3>Countries</h3> <table> <% @countries.each do |country| %> <% count = country.beers.count if count > 0 %> <tr> <td> <span class='country-key'><%= country.key %></span> <%= image_tag_for_country( country ) %> <%= link_to country.title, short_country_path( country ) %> </td> </tr> <tr> <td> <% 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">(<%= count %>)</span> </td> </tr> <% breweries_count = country.breweries.count if breweries_count > 0 %> <tr> <td> <% country.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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
beerdb-admin-0.1.0 | app/views/beer_db_admin/countries/index.html.erb |
beerdb-admin-0.0.1 | app/views/beer_db_admin/countries/index.html.erb |