Merge pull request #805 from danielballan/template-vars

MNT: Add hub host and prefix to template vars in prep for JLab extension
This commit is contained in:
Min RK
2016-10-11 18:18:21 +02:00
committed by GitHub

View File

@@ -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'] = \