rubycentral / cfp-app

Rails app for managing a conference CFP
MIT License
223 stars 154 forks source link

Organizer Publishes Page / Public Views Themed Page #255

Closed jonsgreen closed 2 years ago

jonsgreen commented 2 years ago

Organizer Publishes Page / Public Views Themed Page

Reason for Change

This PR adds a button for publishing the body content of a page. It is achieved by simply copying the current unpublished_body to the published_body. The UI for this is likely to evolve but for now it is done by clicking a button on the index view. We may ultimately want to add PaperTrail versioning for these fields just as some additional backup for possible reverting and history but that can be considered separately.

Published pages can also now be viewed at a public route using the event and page slugs in the path. The published pages appear in the navigation for the website.

This PR also sets up some basic structure for website theming. Right now there is only one default theme and it is just a rough placeholder version there thanks to some stripping of the rubyconf 2021 website done previously by @codyjamesbrooks (thanks!). Hopefully this will be replaced once a more comprehensive design is available in the coming weeks. With just the default theme there is no need to be able to edit the theme from the UI. Since it is unclear if and when more themes will be needed no extra effort has gone into strategizing the best way to add/augment themes but the spike proved that this at least is possible though some improvements may be required.

Changes

Miro Card PR Review App