mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-10-30 18:58:39 -04:00
- Implement RecentActivity service to track recent planting, harvesting, and trading events. - Enhance TimelineService to include garden layouts in event queries. - Update navigation menu to include a link to friends and neighbours. - Create member card partial for displaying gardener information. - Add follow button partial for managing follow actions. - Refactor members index view to use the new member card partial. - Introduce neighbours feed view with daily updates and entries. - Implement entry partial for displaying individual neighbour activities. - Create layout partial for visualizing garden layouts. - Add posts section to neighbours view for displaying recent posts. - Implement reach section to show nearby gardeners. - Add suggestions section for recommending gardeners to follow. - Create routes for neighbours functionality and member dismissals. - Add migrations for member dismissals and garden layout timestamps. - Write feature and request specs for neighbours functionality. - Include support for creating located members in tests.
18 lines
913 B
Plaintext
18 lines
913 B
Plaintext
-# A gardener as a card. Pass `why` for a line on why they are shown, and
|
||
-# `dismissible: true` for a × that stops suggesting them.
|
||
- why = local_assigns[:why]
|
||
.member-card
|
||
- if local_assigns[:dismissible]
|
||
= button_to '×', member_dismissals_path(member_id: person.id), class: 'member-card-dismiss', form_class: 'member-card-dismiss-form', aria: { label: t('members.card.not_interested', name: person.login_name) }
|
||
.member-card-top
|
||
= link_to image_tag(avatar_uri(person, 48), alt: person.login_name, width: 48, height: 48), member_path(person)
|
||
.member-card-name
|
||
%h4.login-name= link_to person.login_name, member_path(person)
|
||
- if person.location.present?
|
||
%span= person.location
|
||
- if why
|
||
%p.member-card-why= why
|
||
.member-card-foot
|
||
= link_to t('members.card.visit', name: person.login_name), member_gardens_path(person)
|
||
= render 'members/follow_button', person:
|