From 5e8211172bb0f522abb037f4adda6caf3410285e Mon Sep 17 00:00:00 2001 From: Daniel O'Connor Date: Mon, 23 May 2016 11:12:42 +0930 Subject: [PATCH] Only show a heading for Notes if there are notes --- app/views/plantings/show.html.haml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/views/plantings/show.html.haml b/app/views/plantings/show.html.haml index b56e1f38c..983a28c6d 100644 --- a/app/views/plantings/show.html.haml +++ b/app/views/plantings/show.html.haml @@ -59,10 +59,11 @@ .col-md-6 = render :partial => "crops/index_card", :locals => { :crop => @planting.crop} -%h2 Notes +- if @planting.description + %h2 Notes -:growstuff_markdown - #{ @planting.description != "" ? @planting.description : "No description given." } + :growstuff_markdown + #{ @planting.description != "" ? @planting.description : "No description given." } - if @planting.photos.size > 0 or (can? :edit, @planting and can? :create, Photo) %h2 Pictures