diff options
author | James Lopez <james@jameslopez.es> | 2016-11-25 13:22:44 +0300 |
---|---|---|
committer | James Lopez <james@jameslopez.es> | 2016-11-25 13:47:33 +0300 |
commit | 830f739b99b36f8862dadc524e4aa72ec5a3366e (patch) | |
tree | 744f10d8900493e2443b36d432cd6ed0f5e76f24 /app/serializers/entity_date_helper.rb | |
parent | aa895a64d928f8292ff9df526831ae74d250f748 (diff) |
use an empty total time when the build has not started yet so the UI knows
Diffstat (limited to 'app/serializers/entity_date_helper.rb')
-rw-r--r-- | app/serializers/entity_date_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/serializers/entity_date_helper.rb b/app/serializers/entity_date_helper.rb index 3cc98fb18a1..9607ad55a8b 100644 --- a/app/serializers/entity_date_helper.rb +++ b/app/serializers/entity_date_helper.rb @@ -2,7 +2,7 @@ module EntityDateHelper include ActionView::Helpers::DateHelper def interval_in_words(diff) - return 'not started' unless diff + return 'Not started' unless diff "#{distance_of_time_in_words(Time.now, diff)} ago" end |