2016-08-15 17:43:02 -05:00
|
|
|
<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>
|
2016-08-16 12:41:31 -05:00
|
|
|
<td><%= text_field_tag('rating', log.rating, disabled: true, data: {rating: true}) %></td>
|
|
|
|
<td><%= log.notes %></td>
|
2016-08-15 17:43:02 -05:00
|
|
|
</tr>
|
|
|
|
<% end %>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|