From cf2c42a7e05079d7d75b599755f0df7d09faa47c Mon Sep 17 00:00:00 2001 From: Brenda Wallace Date: Sun, 24 Nov 2019 12:21:37 +1300 Subject: [PATCH] Only display location if we have a location --- app/views/plantings/_timeline.html.haml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/views/plantings/_timeline.html.haml b/app/views/plantings/_timeline.html.haml index 2baf4eebe..05a29da3a 100644 --- a/app/views/plantings/_timeline.html.haml +++ b/app/views/plantings/_timeline.html.haml @@ -35,4 +35,5 @@ - else .badge.text-muted{'aria-hidden': "true"} = I18n.t('date.abbr_month_names')[month] - in #{link_to planting.garden.location, place_path(planting.garden.location)} + - unless planting.garden.location.blank? + in #{link_to planting.garden.location, place_path(planting.garden.location)}