Files
growstuff/app/views/neighbours/_posts.html.haml
T
Brenda Wallace 3b06325e62 Add friends and neighbours feature with member dismissal functionality
- 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.
2026-10-13 17:08:18 +13:00

20 lines
761 B
Plaintext

= home_section(t('.title'), action: content_tag(:small, t("neighbours.audience.#{neighbours.audience}.posts"), class: 'neighbours-count')) do
.home-table-scroll
%table.home-table
%thead
%tr
%th= t('.subject')
%th= t('.posted_by')
%th= t('.activity')
%th= t('.comments')
%tbody
- neighbours.posts.each do |post|
%tr
%td= link_to post.subject, post_path(post)
%td
= link_to post.author.login_name, member_path(post.author)
- if neighbours.followed.include?(post.author)
%small.home-following= t('home.dashboard.following')
%td= ago_in_words(post.recent_activity)
%td= post.comment_count