mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-09-20 04:51:55 -04:00
Only show finish prediction badges if we have enough data
This commit is contained in:
1 parent
279c922b34
commit
5bf75fa36f
1 file changed
+9
-8
@@ -1,12 +1,13 @@
|
||||
// Finish times
|
||||
- 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
|
||||
- if planting.finished_is_predicatable?
|
||||
- if planting.zombie?
|
||||
%span.badge.badge-danger zombie
|
||||
- elsif planting.should_be_finished?
|
||||
%span.badge.badge-light days past finished
|
||||
- else
|
||||
%span.badge.badge-light
|
||||
= days_from_now_to_finished(planting)
|
||||
days until finished
|
||||
|
||||
// Harvest times
|
||||
- if planting.harvest_time?
|
||||
|
||||
Reference in new issue
Block a user