new modes

This commit is contained in:
kb6e
2025-08-25 20:17:44 +02:00
parent 6fbd24e36e
commit 6385c39c10
38 changed files with 385 additions and 302 deletions

View File

@@ -0,0 +1,10 @@
class EventsController < ApplicationController
# Display all events
def index
@parties = Party.includes(:user).upcoming.page(params[:page]).per(12)
end
# Display desired event
def show
end
end

View File

@@ -15,4 +15,9 @@ class PagesController < ApplicationController
# Accessible only to authenticated users
def dashboard
end
# Events page showing all published parties with pagination
def events
@parties = Party.published.order(created_at: :desc).page(params[:page])
end
end