Files
growstuff/app/views/home/dashboard/_header.html.haml
T
Brenda Wallace 54258de6c4 Refactor home dashboard and related components
- Removed unused styles and helper methods from _garden_layout.scss, _homepage.scss, and overrides.scss.
- Updated _home_dashboard.scss to enhance button styles and added new harvest picker styles.
- Introduced HarvestPicker component for improved harvest recording functionality.
- Refactored home dashboard views to utilize new home_section helper for consistent layout.
- Simplified and optimized existing methods in application_helper.rb, activity.rb, and harvest.rb.
- Removed deprecated homepage_records methods from Activity and Harvest models.
- Updated tests to reflect changes in helper methods and removed obsolete tests.
2026-10-12 19:24:55 +13:00

16 lines
771 B
Plaintext

-# The greeting every signed-in variant starts with: who, where and when, and
-# the two things they most often come here to do.
.home-welcome
= image_tag avatar_uri(current_member, 150), alt: '', class: 'home-welcome-avatar'
.home-welcome-text
%h1= title
- if (conditions = season_summary(current_member))
%p.home-welcome-season
= conditions
- if dashboard.years_growing
= " · #{t('home.dashboard.years_growing', count: dashboard.years_growing)}"
- elsif dashboard.stage != :new
%p.home-welcome-season= render 'home/dashboard/location_picker', label: t('home.dashboard.set_location'), button_class: 'btn btn-link p-0'
.home-welcome-actions.d-none.d-md-flex
= render 'home/dashboard/quick_actions', dashboard: