mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
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. |
||
|---|---|---|
| .. | ||
| _booths.haml | ||
| _call_for_booths.haml | ||
| _call_for_content.haml | ||
| _call_for_papers.haml | ||
| _call_for_tracks.haml | ||
| _conference_details.html.haml | ||
| _footer.haml | ||
| _gallery.html.haml | ||
| _header.haml | ||
| _highlights.haml | ||
| _lodging.haml | ||
| _modal_description.haml | ||
| _program.haml | ||
| _registration.haml | ||
| _social_media.haml | ||
| _sponsors.haml | ||
| _tickets.haml | ||
| _tracks.haml | ||
| _venue.haml | ||
| _venue_map.haml | ||
| _venue_map_marker.haml | ||
| code_of_conduct.html.haml | ||
| index.html.haml | ||
| new_install.html.haml | ||
| show.html.haml | ||