From bb2dc8a8effea568b6ba2ee91904511612ae1828 Mon Sep 17 00:00:00 2001 From: Camille Villa <5402927+camillevilla@users.noreply.github.com> Date: Tue, 3 Sep 2024 18:20:40 -0700 Subject: [PATCH] Remove hardcoded content from homepage view --- app/models/homepage_feature.rb | 2 +- app/views/home/index.html.erb | 145 +++++++-------------------------- 2 files changed, 32 insertions(+), 115 deletions(-) diff --git a/app/models/homepage_feature.rb b/app/models/homepage_feature.rb index 4b92f7e14..f0bd42cfc 100644 --- a/app/models/homepage_feature.rb +++ b/app/models/homepage_feature.rb @@ -19,7 +19,7 @@ def image_s3_presigned_url(style = nil) end def self.column_size(item_count = 3) - if item_count >= 3 + if item_count == nil || item_count >= 3 'three-column-layout' else # update this later to deal with incoming designs 'two-column-layout' diff --git a/app/views/home/index.html.erb b/app/views/home/index.html.erb index ca263306f..0fda4cfc7 100644 --- a/app/views/home/index.html.erb +++ b/app/views/home/index.html.erb @@ -91,130 +91,47 @@
- CREW is a 16-week lifestyle program that uses goal setting and whole health coaching to support Veterans with Type 2 Diabetes and other metabolic health conditions. -
- View Innovation -- PRIDE In All Who Served is a health promotion group for LGBTQIA+ Veterans that fosters support and improves health literacy. Veterans have praised the program for significantly enhancing their well-being and communication with healthcare providers. -
- View Innovation -- Close to Me Cancer Care, sponsored by the VHA National Oncology Program Office, provides anti-cancer therapy services at Community Based Outpatients Clinics (CBOCs) to increase access points to care for Veterans. -
- View Innovation -- Discover our range of innovations focused on suicide prevention, ensuring Veterans receive the essential mental health care they deserve. -
- Learn More -- Explore cutting-edge home health innovations, providing Veterans with personalized and accessible care in the comfort of their own homes -
- Learn More -- Access the latest innovations in specialty care, dedicated to providing advanced medical treatments and personalized care tailored to Veterans' unique health needs. -
- Learn More +- Reimagining the landscape of healthcare for our aging Veteran population. -
- <%= link_to 'View Community', '/communities/age-friendly', class: 'usa-link', 'aria-describedby': 'section-3-feature-1-title' %> -- We help improve care delivery and experiences by leveraging immersive technology for falls risk assessment, neurological risk assessment, pain management, anxiety, addiction recovery, physical therapy, recreation therapy, PTSD, employee education, and more. -
- <%= link_to 'View Community', '/communities/va-immersive', class: 'usa-link', 'aria-describedby': 'section-3-feature-2-title' %> -