This repository has been archived on 2020-05-27. You can view files and clone it, but cannot push or open issues/pull-requests.
2007-11-15 19:57:44 -05:00
|
|
|
<% unless @breweries.empty? -%>
|
2007-11-15 00:35:29 -05:00
|
|
|
<table>
|
|
|
|
<tr>
|
|
|
|
<th>Title</th>
|
|
|
|
<th></th>
|
|
|
|
<th></th>
|
|
|
|
<th></th>
|
|
|
|
</tr>
|
|
|
|
<% for brewery in @breweries %>
|
|
|
|
<tr>
|
|
|
|
<td><%= brewery.title -%></td>
|
|
|
|
<td><%= link_to 'Show', brewery_path(brewery.page.title_for_url) %></td>
|
|
|
|
<td><%= link_to 'Edit', edit_brewery_path(brewery.page.title_for_url) %></td>
|
|
|
|
<td><%= link_to 'Destroy', brewery_path(brewery.page.title_for_url), :confirm => 'Are you sure?', :method => :delete %></td>
|
|
|
|
</tr>
|
|
|
|
<% end %>
|
|
|
|
</table>
|
2007-11-15 19:57:44 -05:00
|
|
|
<% else -%>
|
|
|
|
<p>No breweries, yet.</p>
|
|
|
|
<% end -%>
|
2007-11-15 00:35:29 -05:00
|
|
|
|
2007-11-15 19:57:44 -05:00
|
|
|
<% content_for :sidebar do -%>
|
|
|
|
<%= link_to 'New brewery', new_brewery_path -%><br />
|
|
|
|
<% end -%>
|