New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a configurable about page #341
Conversation
567a376
to
08cf046
Compare
Rebased onto typed config. Ready for review. |
> | ||
<span className="navbar-toggler-icon" /> | ||
</button> | ||
<div className="container-fluid"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a bit unrelated to the current PR - new bootstrap requires navbar contents to be contained within a conteiner-fluid div
@@ -130,3 +130,4 @@ class ServerSchema(BaseModel): | |||
auth_enabled: Optional[str] | |||
openid_url: Optional[str] | |||
openid_client_id: Optional[str] | |||
about: str |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will be populated with the default value ""
if not present in the database, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. Originally this was Optional[str]
in the schema too, but I realised this will never actually be null.
Your checklist for this pull request
What is the current behaviour?
There is no way to add any customised information for the users #323
What is the new behaviour?
This PR adds (will add) a customisable "about" page. It's not very customisable, because all the information will have to fit into a config file, but that should be enough to give users a few URLs or explain what's going on.
This subpage is optional (will be optional in the final PR).
I've decided to allow HTML (it's trusted - it comes from the server) instead of just plain text.
Test plan
Visit /about.
Closing issues
fixes #323