This repository has been archived on 2020-05-27. You can view files and clone it, but cannot push or open issues/pull-requests.
barleysodas/app/views/breweries/index.rhtml

15 lines
378 B
Plaintext
Raw Normal View History

<ul>
<% unless @breweries.empty? -%>
<% for brewery in @breweries %><li><%= show_brewery_link(brewery) -%></li><% end -%>
<% else -%>
<li>No breweries, yet.</li>
<% end -%>
</ul>
<%= render :partial => 'shared/pagination_links' %>
<% content_for :sidebar do -%>
<%= link_to 'New brewery', new_brewery_path -%><br />
<%= render :partial => 'shared/tag_cloud' %>
<% end -%>