From 15780ad0554b36b5ee908dd3debe48e9a4be0cbf Mon Sep 17 00:00:00 2001 From: MinRK Date: Wed, 18 Dec 2013 13:10:22 -0800 Subject: [PATCH] restore use of tornado static_url instead of jinja macro that doesn't write hashes closes #4714 --- IPython/html/base/handlers.py | 3 ++- IPython/html/templates/page.html | 5 +---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/IPython/html/base/handlers.py b/IPython/html/base/handlers.py index f0ca19585..5ab16b9aa 100644 --- a/IPython/html/base/handlers.py +++ b/IPython/html/base/handlers.py @@ -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: diff --git a/IPython/html/templates/page.html b/IPython/html/templates/page.html index bd7fed787..c4dff3a94 100644 --- a/IPython/html/templates/page.html +++ b/IPython/html/templates/page.html @@ -1,9 +1,6 @@ -{% macro static_url(name) -%} - {{ base_project_url }}static/{{ name }} -{%- endmacro %} @@ -28,7 +25,7 @@