mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-05-19 06:15:44 -04:00
Only show a heading for Notes if there are notes
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user