parsley/app/views/logs/index.html.erb
2016-08-15 17:43:02 -05:00

41 lines
899 B
Plaintext

<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><input type="hidden" class="rating" value="<%= log.rating %>" /></td>
<td><%= %></td>
</tr>
<% end %>
</tbody>
</table>
</div>
<% end %>
</div>
</div>