From 3ee253743826be788b599bfae2a81ebd054e5a4c Mon Sep 17 00:00:00 2001 From: Brenda Wallace Date: Tue, 17 Apr 2018 10:03:59 +1200 Subject: [PATCH] Only show time to finished if not finished --- app/views/plantings/_badges.html.haml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/views/plantings/_badges.html.haml b/app/views/plantings/_badges.html.haml index 2e0c078b7..a665b2a75 100644 --- a/app/views/plantings/_badges.html.haml +++ b/app/views/plantings/_badges.html.haml @@ -2,6 +2,8 @@ - if planting.zombie? %span.badge.badge-danger zombie - elsif planting.living_past_predicted_finished? + +- else %span.badge.badge-light = days_from_now_to_finished(planting) days until finished