mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-03-05 07:28:39 -05:00
harvest owner info
This commit is contained in:
18
app/views/harvests/_owner.html.haml
Normal file
18
app/views/harvests/_owner.html.haml
Normal 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
|
||||
Reference in New Issue
Block a user