From b2be07ea6a652eb213e568c17578cc6df9d9a496 Mon Sep 17 00:00:00 2001 From: danielballan Date: Tue, 11 Oct 2016 11:27:50 -0400 Subject: [PATCH] MNT: Add hub host and prefix to template vars in prep for JLab extension. --- jupyterhub/singleuser.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/jupyterhub/singleuser.py b/jupyterhub/singleuser.py index c90972b5..32437357 100644 --- a/jupyterhub/singleuser.py +++ b/jupyterhub/singleuser.py @@ -226,6 +226,8 @@ class SingleUserNotebookApp(NotebookApp): """Patch page templates to add Hub-related buttons""" self.jinja_template_vars['logo_url'] = self.hub_host + url_path_join(self.hub_prefix, 'logo') + self.jinja_template_vars['hub_host'] = self.hub_host + self.jinja_template_vars['hub_prefix'] = self.hub_prefix env = self.web_app.settings['jinja2_env'] env.globals['hub_control_panel_url'] = \