From f5cd21e0ad844a67e1879d15f9c250c247e9effa Mon Sep 17 00:00:00 2001 From: KF7EEL Date: Fri, 1 Jan 2021 15:09:06 -0800 Subject: [PATCH] clean up pages --- scripts/dashboard/dashboard.py | 4 ++-- scripts/dashboard/templates/about.html | 5 ++++- scripts/dashboard/templates/index.html | 1 - 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/scripts/dashboard/dashboard.py b/scripts/dashboard/dashboard.py index c721443..b963441 100644 --- a/scripts/dashboard/dashboard.py +++ b/scripts/dashboard/dashboard.py @@ -105,7 +105,7 @@ def get_bb_data(): @app.route('/') def index(): #return get_data() - return render_template('index.html', title = dashboard_title, logo = logo, description = description) + return render_template('index.html', title = dashboard_title, logo = logo) @app.route('/bulletin_board') def dash_bb(): return get_bb_data() @@ -116,7 +116,7 @@ def dash_loc(): #return render_template('index.html', data = str(get_data())) @app.route('//') def render_static(page_name): - return render_template('%s.html' % page_name, title = dashboard_title, logo = logo) + return render_template('%s.html' % page_name, title = dashboard_title, logo = logo, description = description) if __name__ == '__main__': app.run(debug = True, port=dash_port, host=dash_host) diff --git a/scripts/dashboard/templates/about.html b/scripts/dashboard/templates/about.html index 2ddeae3..31a3320 100644 --- a/scripts/dashboard/templates/about.html +++ b/scripts/dashboard/templates/about.html @@ -34,6 +34,9 @@ p {
-This is a dashboard for the HBLink3 GPS/Data project, found at https://github.com/kf7eel/hblink3. +{{description}} +
+
Dashboard created by KF7EEL - https://github.com/kf7eel/hblink3
HBLink created by N0MJS.
HBLink GitHub page
+ diff --git a/scripts/dashboard/templates/index.html b/scripts/dashboard/templates/index.html index 14cc006..cc3a133 100644 --- a/scripts/dashboard/templates/index.html +++ b/scripts/dashboard/templates/index.html @@ -36,7 +36,6 @@ p {

Page automatically reloads every 2 minutes.

-

{{description}}