osem-fcy/app/views/conferences
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
..
_booths.haml add booth in alias 2019-08-10 21:40:25 +05:30
_call_for_booths.haml add booth in alias 2019-08-10 21:40:25 +05:30
_call_for_content.haml Add call for booths in cfp section in conference splashpage(conferences#show),modified after the design changes 2018-03-27 07:51:06 -07:00
_call_for_papers.haml Add timed cache expiration on CfP partials 2018-06-08 17:32:01 -07:00
_call_for_tracks.haml Add timed cache expiration on CfP partials 2018-06-08 17:32:01 -07:00
_conference_details.html.haml Stop offering the schedule page when no schedule is published 2026-05-14 09:28:58 +05:30
_footer.haml Migrate to fontawesome 6 2022-05-18 06:33:47 +02:00
_gallery.html.haml Migrate to fontawesome 6 2022-05-18 06:33:47 +02:00
_header.haml Drop country_select 2023-05-08 17:09:55 +02:00
_highlights.haml Update app/views/conferences/_highlights.haml 2022-04-19 13:16:50 +02:00
_lodging.haml Migrate to fontawesome 6 2022-05-18 06:33:47 +02:00
_modal_description.haml Migrate to fontawesome 6 2022-05-18 06:33:47 +02:00
_program.haml Stop offering the schedule page when no schedule is published 2026-05-14 09:28:58 +05:30
_registration.haml Fix ArgumentError in Conferences#show 2018-08-29 21:28:20 -07:00
_social_media.haml Expose Conference.code_of_conduct 2024-06-07 17:42:08 +02:00
_sponsors.haml Change Conference#show to load sponsors 2018-02-05 11:04:09 -08:00
_tickets.haml Migrate to fontawesome 6 2022-05-18 06:33:47 +02:00
_tracks.haml Break up the one-query-of-doom 2017-12-22 10:48:55 -08:00
_venue.haml Fix venue information city/country display 2022-05-20 16:25:38 +02:00
_venue_map.haml Break up the one-query-of-doom 2017-12-22 10:48:55 -08:00
_venue_map_marker.haml Let's get serious about linting, folks. 2017-12-22 10:48:55 -08:00
code_of_conduct.html.haml Expose Conference.code_of_conduct 2024-06-07 17:42:08 +02:00
index.html.haml Migrate to fontawesome 6 2022-05-18 06:33:47 +02:00
new_install.html.haml Make use of ENV.fetch 2022-05-06 14:53:57 +02:00
show.html.haml Expose Conference.code_of_conduct 2024-06-07 17:42:08 +02:00