From cd3ee260e9e4d3e7b175600ed201d5be7b1b09f6 Mon Sep 17 00:00:00 2001 From: Jeremy Tuloup Date: Tue, 1 Mar 2022 16:38:11 +0100 Subject: [PATCH] Add missing templates --- notebook/templates/consoles.html | 39 ++++++++++++++++++++ notebook/templates/edit.html | 39 ++++++++++++++++++++ notebook/templates/error.html | 59 +++++++++++++++++++++++++++++++ notebook/templates/notebooks.html | 39 ++++++++++++++++++++ notebook/templates/terminals.html | 39 ++++++++++++++++++++ notebook/templates/tree.html | 36 +++++++++++++++++++ 6 files changed, 251 insertions(+) create mode 100644 notebook/templates/consoles.html create mode 100644 notebook/templates/edit.html create mode 100644 notebook/templates/error.html create mode 100644 notebook/templates/notebooks.html create mode 100644 notebook/templates/terminals.html create mode 100644 notebook/templates/tree.html diff --git a/notebook/templates/consoles.html b/notebook/templates/consoles.html new file mode 100644 index 000000000..0dd0cb828 --- /dev/null +++ b/notebook/templates/consoles.html @@ -0,0 +1,39 @@ + + + + + + {{page_config['appName'] | e}} - Console + {% block favicon %} + + {% endblock %} + + + + {# Copy so we do not modify the page_config with updates. #} + {% set page_config_full = page_config.copy() %} + + {# Set a dummy variable - we just want the side effect of the update. #} + {% set _ = page_config_full.update(baseUrl=base_url, wsUrl=ws_url) %} + + {# Sentinel value to say that we are on the tree page #} + {% set _ = page_config_full.update(notebookPage='consoles') %} + + + + + + + + diff --git a/notebook/templates/edit.html b/notebook/templates/edit.html new file mode 100644 index 000000000..f865497f9 --- /dev/null +++ b/notebook/templates/edit.html @@ -0,0 +1,39 @@ + + + + + + {{page_config['appName'] | e}} - Edit + {% block favicon %} + + {% endblock %} + + + + {# Copy so we do not modify the page_config with updates. #} + {% set page_config_full = page_config.copy() %} + + {# Set a dummy variable - we just want the side effect of the update. #} + {% set _ = page_config_full.update(baseUrl=base_url, wsUrl=ws_url) %} + + {# Sentinel value to say that we are on the tree page #} + {% set _ = page_config_full.update(notebookPage='edit') %} + + + + + + + + diff --git a/notebook/templates/error.html b/notebook/templates/error.html new file mode 100644 index 000000000..895abe802 --- /dev/null +++ b/notebook/templates/error.html @@ -0,0 +1,59 @@ + + + + + + + + {% block title %}{{page_title | e}}{% endblock %} + + {% block favicon %}{% endblock %} + + + + + +{% block stylesheet %} + +{% endblock %} +{% block site %} + +
+ {% block h1_error %} +

{{status_code | e}} : {{status_message | e}}

+ {% endblock h1_error %} + {% block error_detail %} + {% if message %} +

The error was:

+
+
{{message | e}}
+
+ {% endif %} + {% endblock %} + + +{% endblock %} + +{% block script %} + +{% endblock script %} + + + + diff --git a/notebook/templates/notebooks.html b/notebook/templates/notebooks.html new file mode 100644 index 000000000..b2e87d95b --- /dev/null +++ b/notebook/templates/notebooks.html @@ -0,0 +1,39 @@ + + + + + + {{page_config['appName'] | e}} - Notebook + {% block favicon %} + + {% endblock %} + + + + {# Copy so we do not modify the page_config with updates. #} + {% set page_config_full = page_config.copy() %} + + {# Set a dummy variable - we just want the side effect of the update. #} + {% set _ = page_config_full.update(baseUrl=base_url, wsUrl=ws_url) %} + + {# Sentinel value to say that we are on the tree page #} + {% set _ = page_config_full.update(notebookPage='notebooks') %} + + + + + + + + diff --git a/notebook/templates/terminals.html b/notebook/templates/terminals.html new file mode 100644 index 000000000..5c2b09f97 --- /dev/null +++ b/notebook/templates/terminals.html @@ -0,0 +1,39 @@ + + + + + + {{page_config['appName'] | e}} - Terminal + {% block favicon %} + + {% endblock %} + + + + {# Copy so we do not modify the page_config with updates. #} + {% set page_config_full = page_config.copy() %} + + {# Set a dummy variable - we just want the side effect of the update. #} + {% set _ = page_config_full.update(baseUrl=base_url, wsUrl=ws_url) %} + + {# Sentinel value to say that we are on the tree page #} + {% set _ = page_config_full.update(notebookPage='terminals') %} + + + + + + + + diff --git a/notebook/templates/tree.html b/notebook/templates/tree.html new file mode 100644 index 000000000..9c846f90b --- /dev/null +++ b/notebook/templates/tree.html @@ -0,0 +1,36 @@ + + + + + + {{page_config['appName'] | e}} - Tree + + + + {# Copy so we do not modify the page_config with updates. #} + {% set page_config_full = page_config.copy() %} + + {# Set a dummy variable - we just want the side effect of the update. #} + {% set _ = page_config_full.update(baseUrl=base_url, wsUrl=ws_url) %} + + {# Sentinel value to say that we are on the tree page #} + {% set _ = page_config_full.update(notebookPage='tree') %} + + + + + + + +