1
0

Measurement index improvements

This commit is contained in:
cryptogopher
2019-12-21 18:01:46 +01:00
parent d6b3fe3f60
commit b6dbf369d1
5 changed files with 16 additions and 10 deletions

View File

@@ -1,6 +1,7 @@
module MeasurementsHelper
def format_datetime(m)
m.taken_at.getlocal.strftime("%F <small>%R</small>").html_safe
m.taken_at.getlocal
.strftime("%F <small>%R&emsp;(#{time_ago_in_words(m.taken_at)} ago)</small>").html_safe
end
def format_time(m)