develop #3

Merged
kbe merged 227 commits from develop into main 2025-09-16 14:35:23 +00:00
7 changed files with 42 additions and 42 deletions
Showing only changes of commit 8d2127fce2 - Show all commits

View File

@@ -1,6 +1,6 @@
class OnboardingController < ApplicationController class OnboardingController < ApplicationController
before_action :authenticate_user! before_action :authenticate_user!
before_action :redirect_if_onboarding_complete, except: [:complete] before_action :redirect_if_onboarding_complete, except: [ :complete ]
def index def index
# Display the onboarding form # Display the onboarding form

View File

@@ -19,9 +19,9 @@ class PagesController < ApplicationController
@upcoming_events = Event.published.upcoming.limit(6) @upcoming_events = Event.published.upcoming.limit(6)
# Site metrics for landing page (with realistic fake data for demo) # Site metrics for landing page (with realistic fake data for demo)
@total_events = [Event.published.count, 50].max # At least 50 events for demo @total_events = [ Event.published.count, 50 ].max # At least 50 events for demo
@total_users = [User.count, 2500].max # At least 2500 users for demo @total_users = [ User.count, 2500 ].max # At least 2500 users for demo
@events_this_month = [Event.published.where(created_at: 1.month.ago..Time.current).count, 12].max # At least 12 this month @events_this_month = [ Event.published.where(created_at: 1.month.ago..Time.current).count, 12 ].max # At least 12 this month
@active_cities = 5 # Fixed number for demo @active_cities = 5 # Fixed number for demo
end end