mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-12 11:45:38 +08:00
restore use of tornado static_url
instead of jinja macro that doesn't write hashes closes #4714
This commit is contained in:
parent
a80e387b0a
commit
15780ad055
@ -193,8 +193,9 @@ class IPythonHandler(AuthenticatedHandler):
|
||||
logged_in=self.logged_in,
|
||||
login_available=self.login_available,
|
||||
use_less=self.use_less,
|
||||
static_url=self.static_url,
|
||||
)
|
||||
|
||||
|
||||
def get_json_body(self):
|
||||
"""Return the body of the request as JSON data."""
|
||||
if not self.request.body:
|
||||
|
@ -1,9 +1,6 @@
|
||||
|
||||
|
||||
<!DOCTYPE HTML>
|
||||
{% macro static_url(name) -%}
|
||||
{{ base_project_url }}static/{{ name }}
|
||||
{%- endmacro %}
|
||||
<html>
|
||||
|
||||
<head>
|
||||
@ -28,7 +25,7 @@
|
||||
<script src="{{static_url("components/requirejs/require.js") }}" type="text/javascript" charset="utf-8"></script>
|
||||
<script>
|
||||
require.config({
|
||||
baseUrl: '{{static_url()}}',
|
||||
baseUrl: '{{static_url("")}}',
|
||||
paths: {
|
||||
nbextensions : '{{ base_project_url }}nbextensions'
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user