aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/dash/app/pal/report/layout.py
diff options
context:
space:
mode:
authorTibor Frank <tifrank@cisco.com>2022-01-26 09:31:43 +0100
committerTibor Frank <tifrank@cisco.com>2022-02-24 08:11:41 +0100
commitb2cb835b34c7404b2aaee3ec30700c67537da66d (patch)
treed0a6ce077b6d927565294fcd7301fb727708cd06 /resources/tools/dash/app/pal/report/layout.py
parent9eebc3e59028014a8fc151575b99347d2871c097 (diff)
UTI: PoC - Dash application for Trending
- delete old dash demo Change-Id: I3e75c1dc18ee85c1826838af0343a4b779f71754 Signed-off-by: Tibor Frank <tifrank@cisco.com>
Diffstat (limited to 'resources/tools/dash/app/pal/report/layout.py')
-rw-r--r--resources/tools/dash/app/pal/report/layout.py46
1 files changed, 46 insertions, 0 deletions
diff --git a/resources/tools/dash/app/pal/report/layout.py b/resources/tools/dash/app/pal/report/layout.py
new file mode 100644
index 0000000000..70fe727efc
--- /dev/null
+++ b/resources/tools/dash/app/pal/report/layout.py
@@ -0,0 +1,46 @@
+# Copyright (c) 2022 Cisco and/or its affiliates.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at:
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+"""Plotly Dash HTML layout override."""
+
+html_layout = u"""
+<!DOCTYPE html>
+ <html>
+ <head>
+ {%metas%}
+ <title>{%title%}</title>
+ {%favicon%}
+ {%css%}
+ </head>
+ <body class="dash-template">
+ <header>
+ <div class="nav-wrapper">
+ <a href="/">
+ <h1>FD.io CSIT</h1>
+ </a>
+ <a href="">
+ <h1>Report</h1>
+ </a>
+ <nav>
+ </nav>
+ </div>
+ </header>
+ {%app_entry%}
+ <footer>
+ {%config%}
+ {%scripts%}
+ {%renderer%}
+ </footer>
+ </body>
+ </html>
+"""