-
Notifications
You must be signed in to change notification settings - Fork 6
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
Update bootstrap 5 #1725
Update bootstrap 5 #1725
Conversation
Format the html for these pages.
Add test mix-in to support formatted templates.
A request object is not sent to the `BadRequest` exception, so we check whether such an object exists before trying to render the `400.html` template.
Hmm...that's not what I have. Here's what I get: Try doing a hard refresh of the page? Edit: When you look at those links on the side in the developer tools, where is the styling coming from? For example, there should be color styles coming from |
Hard refresh fixed it! Not sure what was going on, but the css styling was fixed as well. |
Updates the version of Bootstrap used in CantusDB to Bootstrap 5. Closes #1462.
This PR touches many many files, but most of those changes are cosmetic and/or involve replacing deprecated Bootstrap classes with new ones. I suspect the best way to review is going to be to pull this branch and walk through pages locally. Note: static files must be refreshed!
A few other minor additions to this PR:
djlint
docker-compose-development.yml
file was rewritten to not require a pin for debugging withrunserver_plus
. Since this command is only ever run locally, we don't need the security of a pin.assertParsedContains
, that maps closely to Django'sassertContains
method, but, by parsing the html, is more robust to these types of changes to html that do not impact rendered html. The additional ofBeautifulSoup
andlxml
dev dependencies are used for this assertion; however, no production dependencies are added!Also closes #1721.