-
Notifications
You must be signed in to change notification settings - Fork 10
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
Move inline JS/CSS to files #467
Conversation
ec8a60a
to
3a4246f
Compare
I don't understand the commit message in |
The repository for documents, documents_restricted the news, the (flat) pages etc. |
Ah, nevermind. I forgot to translate „content“ to „sipa-content.git repo“ in my head. Of course I know that. Thanks for clarifying. |
00b0a97
to
cc8d4d8
Compare
4ee6f23
to
74201bd
Compare
moving css to the css file moved some js to the js file Problem: some js code need to be rendered by jinja to get the unsupported dorms #453
* The required leaflet* files are now included in the 'content' repository. * raphael.2.1.0.min.js was seemingly used for the traffic limit gauge in the past.
74201bd
to
6e8d036
Compare
@lukasjuhrich it seems you forgot to add the changes in |
5b9e04b
to
fe116cc
Compare
This sets a hard-coded `script_src` and `style_src` CSP that is only returned in the usersuite index, which is the only location where we use `pygal`. This allows us to forbid un-tagged inline scripts and styles via CSP. `flask.g` is used because we (unfortunately) render the traffic graph indirectly via global jinja callable instead of passing it directly to the template as an argument.
4567893
to
4555372
Compare
develop
Closes #453 .