Skip to content

Add started_at/ended_at datetime fields to Banner#1342

Open
diti0-dot wants to merge 3 commits intorubyforgood:mainfrom
diti0-dot:banner
Open

Add started_at/ended_at datetime fields to Banner#1342
diti0-dot wants to merge 3 commits intorubyforgood:mainfrom
diti0-dot:banner

Conversation

@diti0-dot
Copy link
Contributor

Closes #216

What is the goal of this PR and why is this important?

Adds support for scheduled banners with start/end dates

How did you approach the change?

Added started_at/ended_at datetime fields to Banner, created an :active scope to filter by current date, and updated display_banner helper to show all active banners instead of just the last one.

UI Testing Checklist

Anything else to add?

Should I also add the started_at and ended_at fields to the banners/new form?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support scheduled Banners

1 participant