From 6f2946b9dc4fbbcc2059143c8e495af6245485f2 Mon Sep 17 00:00:00 2001 From: Will Starms Date: Wed, 5 Dec 2018 15:43:48 -0600 Subject: [PATCH 1/2] Respect parent template headaercontent in child pages --- notebook/templates/edit.html | 1 + notebook/templates/notebook.html | 1 + notebook/templates/terminal.html | 1 + notebook/templates/tree.html | 1 + 4 files changed, 4 insertions(+) diff --git a/notebook/templates/edit.html b/notebook/templates/edit.html index 5ef9eecc7..d0ac31748 100644 --- a/notebook/templates/edit.html +++ b/notebook/templates/edit.html @@ -19,6 +19,7 @@ data-file-path="{{file_path}}" {% endblock %} {% block headercontainer %} +{{super()}} diff --git a/notebook/templates/notebook.html b/notebook/templates/notebook.html index 4dbc4c3cc..bf1559289 100644 --- a/notebook/templates/notebook.html +++ b/notebook/templates/notebook.html @@ -36,6 +36,7 @@ data-notebook-path="{{notebook_path | urlencode}}" {% block headercontainer %} +{{super()}} diff --git a/notebook/templates/terminal.html b/notebook/templates/terminal.html index ecdbbbe3f..acbbec79f 100644 --- a/notebook/templates/terminal.html +++ b/notebook/templates/terminal.html @@ -19,6 +19,7 @@ data-ws-path="{{ws_path}}" {% endblock %} {% block headercontainer %} +{{super()}} {% endblock headercontainer %} diff --git a/notebook/templates/tree.html b/notebook/templates/tree.html index 283e4b115..6778b2ef9 100644 --- a/notebook/templates/tree.html +++ b/notebook/templates/tree.html @@ -12,6 +12,7 @@ data-server-root="{{server_root}}" {% endblock %} {% block headercontainer %} +{{super()}} {% if shutdown_button %} From 49aad1bfbc862fd45fdf9e239dd99ccc147e7310 Mon Sep 17 00:00:00 2001 From: Will Starms Date: Wed, 5 Dec 2018 16:31:50 -0600 Subject: [PATCH 2/2] relocate super() content to other side of span --- notebook/templates/edit.html | 2 +- notebook/templates/notebook.html | 3 ++- notebook/templates/terminal.html | 2 +- notebook/templates/tree.html | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/notebook/templates/edit.html b/notebook/templates/edit.html index d0ac31748..9b66df29e 100644 --- a/notebook/templates/edit.html +++ b/notebook/templates/edit.html @@ -19,13 +19,13 @@ data-file-path="{{file_path}}" {% endblock %} {% block headercontainer %} -{{super()}} +{{super()}} {% endblock %} {% block header %} diff --git a/notebook/templates/notebook.html b/notebook/templates/notebook.html index bf1559289..828851f3b 100644 --- a/notebook/templates/notebook.html +++ b/notebook/templates/notebook.html @@ -36,7 +36,6 @@ data-notebook-path="{{notebook_path | urlencode}}" {% block headercontainer %} -{{super()}} @@ -45,6 +44,8 @@ data-notebook-path="{{notebook_path | urlencode}}" +{{super()}} + {% block kernel_logo_widget %} diff --git a/notebook/templates/terminal.html b/notebook/templates/terminal.html index acbbec79f..b61c13b22 100644 --- a/notebook/templates/terminal.html +++ b/notebook/templates/terminal.html @@ -19,8 +19,8 @@ data-ws-path="{{ws_path}}" {% endblock %} {% block headercontainer %} -{{super()}} +{{super()}} {% endblock headercontainer %} {% block site %} diff --git a/notebook/templates/tree.html b/notebook/templates/tree.html index 6778b2ef9..d84a973c1 100644 --- a/notebook/templates/tree.html +++ b/notebook/templates/tree.html @@ -12,8 +12,8 @@ data-server-root="{{server_root}}" {% endblock %} {% block headercontainer %} -{{super()}} + {{super()}} {% if shutdown_button %}