Only show a heading for Notes if there are notes

This commit is contained in:
Daniel O'Connor
2016-05-23 11:12:42 +09:30
parent 24956255d7
commit 5e8211172b

View File

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