From 329262e2f5840d5bda837d3bb02496e9270d2d49 Mon Sep 17 00:00:00 2001 From: Brenda Wallace Date: Thu, 24 Oct 2019 19:45:08 +1300 Subject: [PATCH] show "finished" when planting is finished --- app/views/plantings/show.html.haml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/views/plantings/show.html.haml b/app/views/plantings/show.html.haml index 57701f27b..83910a44b 100644 --- a/app/views/plantings/show.html.haml +++ b/app/views/plantings/show.html.haml @@ -23,7 +23,9 @@ = crop_icon(@planting.crop) %strong= @planting.crop.name.titleize %small.text-muted= @planting.crop.default_scientific_name - - if @planting.percentage_grown.present? + - if @planting.finished? + Finished + - elsif @planting.percentage_grown.present? #{@planting.percentage_grown.to_i}% = render 'timeline', planting: @planting