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
adds publishing of page content
adds Website#theme with default of Website::DEFAULT
adds themes folder structure for layout, stylesheets and images with
default wireframes placeholders for now
fixes ApplicationController#current_website to find current_event for
website using params slug with not set by backend session
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 thepublished_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