Added eaten_at to Meal form
This commit is contained in:
@@ -11,6 +11,10 @@ module BodyTrackersHelper
|
||||
end
|
||||
end
|
||||
|
||||
def format_time(t)
|
||||
t.strftime("%R") if t
|
||||
end
|
||||
|
||||
def unit_options
|
||||
@project.units.map do |u|
|
||||
[u.shortname, u.id]
|
||||
|
||||
@@ -1,14 +1,10 @@
|
||||
module MeasurementsHelper
|
||||
def format_datetime(m)
|
||||
m.taken_at.getlocal
|
||||
m.taken_at
|
||||
.strftime("%F <small>%R (~#{time_ago_in_words(m.taken_at)} ago)</small>")
|
||||
.html_safe
|
||||
end
|
||||
|
||||
def format_time(m)
|
||||
m.taken_at.getlocal.strftime("%R")
|
||||
end
|
||||
|
||||
def toggle_column_options
|
||||
disabled = []
|
||||
enabled_quantities = @routine.quantities.to_a
|
||||
|
||||
Reference in New Issue
Block a user