simplifying interface
git-svn-id: http://svn.barleysodas.com/barleysodas/trunk@47 0f7b21a7-9e3a-4941-bbeb-ce5c7c368fa7master
parent
8717d364ca
commit
98323b8d56
|
@ -1,22 +1,13 @@
|
||||||
|
<ul>
|
||||||
<% unless @beers.empty? -%>
|
<% unless @beers.empty? -%>
|
||||||
<table>
|
|
||||||
<tr>
|
|
||||||
<th>Beer</th>
|
|
||||||
<th></th>
|
|
||||||
<th></th>
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
<% for beer in @beers %>
|
<% for beer in @beers %>
|
||||||
<tr>
|
<li><%= link_to beer.title, beer_path(beer.page.title_for_url) %></li>
|
||||||
<td><%= link_to beer.title, beer_path(beer.page.title_for_url) %></td>
|
|
||||||
<td><%= link_to 'Edit', edit_beer_path(beer.page.title_for_url) %></td>
|
|
||||||
<td><%= link_to 'Destroy', beer_path(beer.page.title_for_url), :confirm => 'Are you sure?', :method => :delete %></td>
|
|
||||||
</tr>
|
|
||||||
<% end %>
|
|
||||||
</table>
|
|
||||||
<% else -%>
|
<% else -%>
|
||||||
<p>No beers, yet</p>
|
<li>No beers, yet</li>
|
||||||
<% end -%>
|
<% end -%>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<%= render :partial => 'shared/pagination_links' %>
|
||||||
|
|
||||||
<% content_for :sidebar do -%>
|
<% content_for :sidebar do -%>
|
||||||
<%= link_to "New Beer", new_beer_path, { :title => 'Create a new beer' } -%><br />
|
<%= link_to "New Beer", new_beer_path, { :title => 'Create a new beer' } -%><br />
|
||||||
|
|
Reference in New Issue