diff --git a/app/views/meals/_index.html.erb b/app/views/meals/_index.html.erb
index 2a68ccb..c240ae6 100644
--- a/app/views/meals/_index.html.erb
+++ b/app/views/meals/_index.html.erb
@@ -10,7 +10,8 @@
<% total_width = 4 + @quantities.length %>
<% @meals_by_date.reverse_each do |date, meals| %>
- |
+ |
<%= l(:field_amount) %>
|
@@ -20,7 +21,7 @@
<%= q.name %>
<% end %>
- |
+ |
@@ -31,8 +32,8 @@
<% end %>
-
-
+ |
+
<%= date == Date.current ? 'Today' : date.strftime('%F') %>
@@ -47,12 +48,8 @@
|
<% meals.each_with_index do |m, index| %>
- <%= render partial: 'meals/show', locals: {
- m: m, index: index,
- color: cycle('#d0e0e3', '#c9daf8', '#cfe2f3', '#d9d2e9', '#ead1dc')
- } %>
+ <%= render partial: 'meals/show', locals: {m: m, index: index, color: '#d0e0e3'} %>
<% end %>
- <% reset_cycle %>
<% end %>
diff --git a/app/views/meals/_show.html.erb b/app/views/meals/_show.html.erb
index db53ce4..67224a9 100644
--- a/app/views/meals/_show.html.erb
+++ b/app/views/meals/_show.html.erb
@@ -1,6 +1,6 @@
-
+ style="background-color: <%= color %>;">
+ |
<%= "#{t '.label_meal'} ##{index+1}" %>
<% if m.eaten_at %>
<%= " at #{m.eaten_at.strftime('%R')}" %>
diff --git a/assets/stylesheets/body_tracking.css b/assets/stylesheets/body_tracking.css
index e28fc5f..6857d4b 100644
--- a/assets/stylesheets/body_tracking.css
+++ b/assets/stylesheets/body_tracking.css
@@ -11,6 +11,7 @@ table.list .quantityhead {
vertical-align: bottom;
position: relative;
padding: 2px 0;
+ border: none;
}
table.list .action,
@@ -31,8 +32,6 @@ table.list td.form {
text-align: left;
}
-table#meals, table#meals td {border: none;}
-
fieldset#filters table.filter td {padding-left: 8px;}
a.icon:not(.icon-move) {margin-left: 0.3em;}
|