2016-01-28 14:19:51 -06:00
|
|
|
|
2016-01-30 15:49:17 -06:00
|
|
|
<table class="table table-striped table-hover table-condensed">
|
2016-01-28 14:19:51 -06:00
|
|
|
|
|
|
|
<thead>
|
2016-01-30 15:49:17 -06:00
|
|
|
<tr>
|
|
|
|
<th colspan="2"></th>
|
|
|
|
<th colspan="3">per 100 grams</th>
|
|
|
|
</tr>
|
2016-01-28 14:19:51 -06:00
|
|
|
<tr>
|
|
|
|
<th>NDBN</th>
|
|
|
|
<th>Name</th>
|
2016-01-30 15:49:17 -06:00
|
|
|
<th>KCal</th>
|
|
|
|
<th>Carbs</th>
|
|
|
|
<th>Sugar</th>
|
2016-01-28 14:19:51 -06:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
|
|
|
|
<% @foods.each do |f| %>
|
|
|
|
|
|
|
|
<tr>
|
2016-01-30 15:49:17 -06:00
|
|
|
<td><%= f.ndbn %></td>
|
|
|
|
<td><%= link_to f.long_description, '#', class: 'food_result', data: {ndbn: f.ndbn} %></td>
|
|
|
|
<td><%= f.kcal %></td>
|
|
|
|
<td><%= f.carbohydrates %></td>
|
|
|
|
<td><%= f.sugar %></td>
|
2016-01-28 14:19:51 -06:00
|
|
|
</tr>
|
|
|
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
</table>
|