mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-10-31 03:09:06 -04:00
- Renamed all instances of 'Activity' to 'Job' in views, controllers, and models. - Updated routes to reflect the change from activities to jobs. - Modified database schema to rename the activities table to jobs and adjusted related columns. - Updated locale files to change activity-related translations to jobs. - Adjusted tests to ensure they reference jobs instead of activities. - Removed the category field from jobs as they are now a plain list. - Updated seed data and sample data generation to create jobs instead of activities.
34 lines
1.4 KiB
Plaintext
34 lines
1.4 KiB
Plaintext
.card-body
|
|
%h3
|
|
Stats
|
|
.label.d-md-none{type: "button", :data => { :bs_toggle => "collapse", :bs_target => "#stats-collapse"}}
|
|
%a
|
|
Show/Hide
|
|
|
|
.collapse.d-md-block#stats-collapse
|
|
%ul.list-group.list-group-flush
|
|
- if member.gardens.present?
|
|
%li.list-group-item
|
|
= link_to localize_plural(member.gardens, Garden), member_gardens_path(member)
|
|
- if member.plantings.present?
|
|
%li.list-group-item
|
|
= link_to localize_plural(member.plantings, Planting), member_plantings_path(member)
|
|
- if member.harvests.present?
|
|
%li.list-group-item
|
|
= link_to localize_plural(member.harvests, Harvest), member_harvests_path(member)
|
|
- if member.seeds.present?
|
|
%li.list-group-item
|
|
= link_to localize_plural(member.seeds, Seed), member_seeds_path(member)
|
|
- if member.posts.present?
|
|
%li.list-group-item
|
|
= link_to localize_plural(member.posts, Post), member_posts_path(member)
|
|
- if member.jobs.present?
|
|
%li.list-group-item
|
|
= link_to localize_plural(member.plantings, Job), member_jobs_path(member)
|
|
- if member.followed.present?
|
|
%li.list-group-item
|
|
= link_to localize_plural(member.followed, Follow), member_follows_path(member)
|
|
- if member.followers.present?
|
|
%li.list-group-item
|
|
= link_to pluralize(member.followers.size, "follower"), member_followers_path(member)
|