From 237d2fa51c274dd1b5900f53f7eb112a4ad50289 Mon Sep 17 00:00:00 2001 From: Christopher Wilcox Date: Thu, 30 Jul 2015 14:06:26 -0700 Subject: [PATCH] Add Jinja Blocks to notebook.html and tree.html Added blocks to support customization to: - the logo in the upper right. Both tmpnb and notebooks.azureml.net use this area to add logos. - help links. We add links to the help tab. We also add a rel="noreferrer" to each link. These block enable us to make these corrections without altering the primary template. - provide a place in tree to give an attribute area. We use this to hide the clusters tab. --- notebook/templates/notebook.html | 6 +++++- notebook/templates/tree.html | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/notebook/templates/notebook.html b/notebook/templates/notebook.html index 9661fe272..22bb73a57 100644 --- a/notebook/templates/notebook.html +++ b/notebook/templates/notebook.html @@ -45,7 +45,9 @@ data-notebook-path="{{notebook_path}}" + {% block kernel_logo_widget %} + {% endblock %} {% endblock headercontainer %} @@ -250,6 +252,7 @@ data-notebook-path="{{notebook_path}}" diff --git a/notebook/templates/tree.html b/notebook/templates/tree.html index 1c73d8406..949d26d0e 100644 --- a/notebook/templates/tree.html +++ b/notebook/templates/tree.html @@ -19,7 +19,7 @@ data-terminals-available="{{terminals_available}}"