Sha256: c585cca6c6da8f3466afe3ffaafd530f505eca635148302860016a1ee87251d8

Contents?: true

Size: 759 Bytes

Versions: 3

Compression:

Stored size: 759 Bytes

Contents

<h3><%= @brands.count %> Brands</h3>

<table>
<% @brands.each do |brand| %>
<tr>
  <td class='beer-key'><%= brand.key %></td>
    
  <td><%= brand.title %>
     <% if brand.synonyms.present? %>
       | <%= beer.synonyms %>
     <% end %>
     
     //
     <% if brand.brewery.present? %>
       <%= brand.brewery.title %>
     <% else %>
       -
     <% end %>

  </td>
  <td>
    <% if brand.city.present? %>
      <%= brand.city.title %>
    <% else %>
      -
    <% end %>
    /
    <% if brand.region.present? %>
      <%= brand.region.title %>
    <% else %>
      -
    <% end %>
    /
     <%= image_tag_for_country( brand.country ) %>
     <%= link_to brand.country.title, short_country_path( brand.country ) %>
   </td>
</tr>

<% end %>
</table>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
beerdb-admin-0.1.1 app/views/beer_db_admin/brands/index.html.erb
beerdb-admin-0.1.0 app/views/beer_db_admin/brands/index.html.erb
beerdb-admin-0.0.1 app/views/beer_db_admin/brands/index.html.erb