harvest owner info

This commit is contained in:
Brenda Wallace
2019-07-21 19:16:22 +12:00
parent e309548d20
commit 3f84f5abe1

View File

@@ -0,0 +1,18 @@
.well
.row
.col-md-6
%h4
Harvested by
= link_to harvest.owner, harvest.owner
= link_to "view all #{harvest.owner}'s harvests", member_gardens_path(harvest.owner)
- if harvest.planting.present?
%p
Harvested from
= link_to harvest.planting, harvest.planting
- if harvest.owner.location
%p
%small
View other harvests, members and more near
= link_to harvest.owner.location, place_path(harvest.owner.location, anchor: "harvests")
.col-md-6= render "members/avatar", member: harvest.owner