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
|
|
|
<%= render :partial => 'pages/page' %>
|
2007-11-15 19:17:37 -05:00
|
|
|
|
|
|
|
<%
|
|
|
|
attributes = []
|
|
|
|
attributes << "ABV: #{abv(@beer)}" unless @beer.abv.to_s.empty?
|
|
|
|
attributes << "Original Gravity: #{@beer.original_gravity}" unless @beer.original_gravity.to_s.empty?
|
|
|
|
attributes << "Final Gravity: #{@beer.final_gravity}" unless @beer.final_gravity.to_s.empty?
|
|
|
|
unless attributes.empty?
|
|
|
|
-%>
|
|
|
|
<div id="attributes">
|
|
|
|
<h3>Useful attributes</h3>
|
|
|
|
<ul><li><%= attributes.join('</li><li>') -%></ul>
|
|
|
|
</div>
|
|
|
|
<% end -%>
|
|
|
|
|
2007-11-15 19:57:44 -05:00
|
|
|
<% content_for :sidebar do -%>
|
|
|
|
<%= link_to 'New Beer', new_beer_path -%><br />
|
|
|
|
<%= link_to 'Edit Beer', edit_beer_path(@beer.page.title_for_url) -%><br />
|
|
|
|
<% end -%>
|