more ui simplification

git-svn-id: http://svn.barleysodas.com/barleysodas/trunk@48 0f7b21a7-9e3a-4941-bbeb-ce5c7c368fa7
master
andrew 2007-12-03 08:37:31 +00:00
parent 98323b8d56
commit 0ad871e748
3 changed files with 3 additions and 4 deletions

View File

@ -4,7 +4,7 @@ module BeersHelper
end
def show_beer_link(beer)
link_to 'Show', beer_path(beer.page.title_for_url),
link_to beer.title, beer_path(beer.page.title_for_url),
{ :title => beer.title }
end

View File

@ -1,8 +1,6 @@
<ul>
<% unless @beers.empty? -%>
<% for beer in @beers %>
<li><%= link_to beer.title, beer_path(beer.page.title_for_url) %></li>
<% else -%>
<% for beer in @beers %><li><%= link_to beer.title, beer_path(beer.page.title_for_url) %></li><% else -%>
<li>No beers, yet</li>
<% end -%>
</ul>

View File

@ -3,4 +3,5 @@
<% content_for :sidebar do -%>
<%= new_beer_link -%><br />
<%= edit_beer_link(@beer) -%><br />
<%= link_to 'Destroy', beer_path(@beer.page.title_for_url), :confirm => 'Are you sure?', :method => :delete %><br />
<% end -%>