show "finished" when planting is finished

This commit is contained in:
Brenda Wallace
2019-10-24 19:45:08 +13:00
parent 5d4f1abacd
commit 329262e2f5

View File

@@ -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