Stargate retro UI integration #120
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Example of a working integration. Feel free to use this branch, expand on it, or go in another direction.
For pages that have multiple versions (dialing and address) right now. There are new configs options that allows users to pick which template to use. It also allows future expansion such as multiple versions of the dialing page (since they update the UI in the show every season)
*.htm, *.html and *.js files have been updated to href to
/stargate/dialand/stargate/address_bookinstead of a direct link to the file.web_server.py has been updated to check the config and send a redirect request to the proper template. Speed dialing query is preserved and works between default and retro templates.
I was testing on my pi and had it working. So I believe I copied all changes over to this branch.
Also included my retro files with minor changes for the integration.
There may be a better way to handle it rather than redirects but I didn't want to mess with the apachi config.