<% if @recipes.empty? %>

No Recipes

<% else %>
<% if current_user? %> <% end %> <% decorate(@recipes, RecipeDecorator).each do |recipe| %> <% if current_user? %> <% end %> <% end %>
Name Yields Time Created
<%= link_to recipe.short_name, recipe %> <%= recipe.yields %> <%= recipe_time(recipe) %> <%= timestamp(recipe.created_at) %> <%= link_to new_recipe_log_path(recipe), class: 'btn btn-sm btn-primary' do %> <% end %> <%= link_to edit_recipe_path(recipe), class: 'btn btn-sm btn-primary' do %> <% end %> <%= link_to recipe, method: :delete, data: { confirm: 'Are you sure?' }, class: 'btn btn-sm btn-danger' do %> <% end %>
<% end %>
<%= link_to 'New Recipe', new_recipe_path, class: 'btn btn-default' %>