<% @log = decorate(@log, LogDecorator) @recipe = @log.recipe %>

Date: <%= @log.date %>

Rating: <%= text_field_tag('rating', @log.rating, disabled: true, data: {rating: true}) %>

Notes: <%= @log.notes %>

<%= @recipe.description %>

<% if @recipe.total_time.present? || @recipe.active_time.present? %>

<%= recipe_time(@recipe) %>

<% end %> <% if @recipe.yields.present? %>

Yields

<%= @recipe.yields %>

<% end %> <% if @recipe.source.present? %>

Source

<%= @recipe.source_markup %>

<% end %>

Ingredients

    <% @recipe.recipe_ingredients.each do |i| %>
  • <%= i.display_name %>
  • <% end %>

Directions

<%= @recipe.step_text %>
<%= link_to 'Edit', edit_log_path(@log), class: 'btn btn-default' %> <%= link_to 'Back', logs_path, class: 'btn btn-default' %>