From 05c5cae5199ca0f265675a6dfc106be544d7120b Mon Sep 17 00:00:00 2001 From: KF7EEL Date: Fri, 1 Jan 2021 14:36:33 -0800 Subject: [PATCH] prepare for about page --- scripts/dashboard/dashboard.py | 3 +++ scripts/dashboard/templates/index.html | 14 ++++++++++++++ 2 files changed, 17 insertions(+) diff --git a/scripts/dashboard/dashboard.py b/scripts/dashboard/dashboard.py index e5f5018..cf7e105 100644 --- a/scripts/dashboard/dashboard.py +++ b/scripts/dashboard/dashboard.py @@ -114,6 +114,9 @@ def dash_bb(): def dash_loc(): return get_loc_data() #return render_template('index.html', data = str(get_data())) +@app.route('//') +def render_static(page_name): + return render_template('%s.html' % page_name) if __name__ == '__main__': app.run(debug = True, port=dash_port, host=dash_host) diff --git a/scripts/dashboard/templates/index.html b/scripts/dashboard/templates/index.html index e9bea40..b8fdcf5 100644 --- a/scripts/dashboard/templates/index.html +++ b/scripts/dashboard/templates/index.html @@ -18,6 +18,19 @@ p {

Logo

{{title}}


+ + + + + + + +
+

Dashboard

+
+

About Dashboard

+
+

Page automatically reloads every 2 minutes.

{{description}}

@@ -32,4 +45,5 @@ p {

Dashboard created by KF7EEL - https://github.com/kf7eel/hblink3
HBLink created by N0MJS.
HBLink GitHub page
+