osem-fcy/app/views
Asish Kumar fae6332c36 Stop offering the schedule page when no schedule is published
The home and splash page render a link to the schedule based purely on
the `schedule_public` flag, even when an admin has not yet selected a
schedule or scheduled any events. Following that link rendered the
schedule view, which then failed inside `_carousel.html.haml` because
`@rooms` (and the selected schedule) had no data — a 500 error instead
of a graceful response.

Treat `schedule_public` as an allowance rather than an unchecked
control: introduce `Program#any_published_schedule?` (true only when
the flag is on *and* there is at least one event in a selected
schedule) and use it to decide whether to render the link from the
home and splash pages. The schedule controller now returns 404 when no
event has been scheduled, so bookmarked URLs surface as "not found"
instead of an internal server error.
2026-05-14 09:28:58 +05:30
..
admin Fix parameter generation for activating a schedule 2026-03-18 13:11:17 +01:00
application Migrate to fontawesome 6 2022-05-18 06:33:47 +02:00
booths Fix various typos 2025-10-15 11:15:47 +00:00
conference_registrations Fix code of conduct during the registration 2025-01-30 17:11:00 +01:00
conferences Stop offering the schedule page when no schedule is published 2026-05-14 09:28:58 +05:30
devise Fix syntax error 2025-01-30 15:22:32 +01:00
layouts Drop Organization Feature 2024-06-07 17:42:08 +02:00
mailbot Send mail on ticket confirmation. 2017-07-26 11:31:19 +05:30
payments Drop Rails.application.secrets usage 2025-08-12 17:27:25 +02:00
physical_tickets Drop Organization Feature 2024-06-07 17:42:08 +02:00
proposals Simplify min/max abstract length feature 2025-01-30 19:10:49 +01:00
schedules Fix various typos 2025-10-15 11:15:47 +00:00
shared Fix various typos 2025-10-15 11:15:47 +00:00
surveys Migrate to fontawesome 6 2022-05-18 06:33:47 +02:00
ticket_purchases Correct invalid table markup 2023-03-04 14:33:08 -08:00
tickets Migrate to fontawesome 6 2022-05-18 06:33:47 +02:00
tracks Replace registration-period datepickers with date input 2024-06-07 13:16:44 +02:00
users Retire semantic_form_for 2022-02-24 15:52:34 +01:00