<div class="row">
  <div class="col-xs-12">

    <div class="page-header">
      <h1>Log Entries</h1>
    </div>

    <% if @logs.empty? %>
      <p>No Entries</p>
    <% else %>

      <div class="table-responsive">
        <table class="log-table table table-striped table-hover">
          <thead>
          <tr>
            <th>Recipe</th>
            <th>Date</th>
            <th>Rating</th>
            <th>Notes</th>
          </tr>
          </thead>

          <tbody>
          <% decorate(@logs, LogDecorator).each do |log| %>
            <tr>
              <td><%= link_to log.recipe.short_name, log %></td>
              <td><%= log.date %></td>
              <td><%= text_field_tag('rating', log.rating, disabled: true, data: {rating: true}) %></td>
              <td><%= log.notes %></td>
            </tr>
          <% end %>
          </tbody>
        </table>
      </div>

    <% end %>

  </div>
</div>

