restore use of tornado static_url

instead of jinja macro that doesn't write hashes

closes #4714
This commit is contained in:
MinRK 2013-12-18 13:10:22 -08:00
parent a80e387b0a
commit 15780ad055
2 changed files with 3 additions and 5 deletions

View File

@ -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:

View File

@ -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'
}