From 3741f7cf78a288e967415ccb6736c888a21c211b Mon Sep 17 00:00:00 2001 From: Evgeny Zinoviev Date: Mon, 19 Feb 2024 01:44:02 +0300 Subject: web_kbn: almost completely ported lws to python --- web/kbn_assets/error_page.css | 30 ++++++++++++++++++++++++++++++ web/kbn_templates/base.j2 | 2 +- web/kbn_templates/index.j2 | 6 +++--- web/kbn_templates/routing_dhcp.j2 | 14 ++++++++++++++ web/kbn_templates/routing_header.j2 | 19 +++++++++++++++++++ web/kbn_templates/routing_main.j2 | 19 +++++++++++++++++++ web/kbn_templates/routing_rules.j2 | 30 ++++++++++++++++++++++++++++++ 7 files changed, 116 insertions(+), 4 deletions(-) create mode 100644 web/kbn_assets/error_page.css create mode 100644 web/kbn_templates/routing_dhcp.j2 create mode 100644 web/kbn_templates/routing_header.j2 create mode 100644 web/kbn_templates/routing_main.j2 create mode 100644 web/kbn_templates/routing_rules.j2 (limited to 'web') diff --git a/web/kbn_assets/error_page.css b/web/kbn_assets/error_page.css new file mode 100644 index 0000000..c39f932 --- /dev/null +++ b/web/kbn_assets/error_page.css @@ -0,0 +1,30 @@ +body, html { + margin: 0; + padding: 0; +} +body { + background-color: #f9cfcf; + padding: 15px; +} +.error_title { + font-size: 24px; + color: #5d1b1b; +} +.error_message { + color: #000; + margin-top: 10px; + font-size: 20px; +} +.error_traceback { + margin-top: 10px; +} +.error_traceback .error_title { + margin-top: 15px; +} +.error_traceback_content { + font-family: monospace; + display: block; + white-space: pre-wrap; + overflow-x: auto; + margin: 1em 0; +} \ No newline at end of file diff --git a/web/kbn_templates/base.j2 b/web/kbn_templates/base.j2 index dc1fd58..53a2984 100644 --- a/web/kbn_templates/base.j2 +++ b/web/kbn_templates/base.j2 @@ -1,7 +1,7 @@ {% macro breadcrumbs(history) %}