From a7325cb30173f0d10ba97fea43e3dfd1e5dd7d3f Mon Sep 17 00:00:00 2001 From: KF7EEL Date: Sat, 2 Jan 2021 15:00:08 -0800 Subject: [PATCH] add page, split header and footer --- scripts/dashboard/templates/about.html | 26 ++---------------------- scripts/dashboard/templates/footer.html | 4 ++++ scripts/dashboard/templates/header.html | 25 +++++++++++++++++++++++ scripts/dashboard/templates/help.html | 19 +++++++++++++++++ scripts/dashboard/templates/index.html | 27 +++---------------------- 5 files changed, 53 insertions(+), 48 deletions(-) create mode 100644 scripts/dashboard/templates/footer.html create mode 100644 scripts/dashboard/templates/header.html create mode 100644 scripts/dashboard/templates/help.html diff --git a/scripts/dashboard/templates/about.html b/scripts/dashboard/templates/about.html index 31a3320..d1b92e4 100644 --- a/scripts/dashboard/templates/about.html +++ b/scripts/dashboard/templates/about.html @@ -14,29 +14,7 @@ p { -

Logo

-

{{title}}

-
- - - - - - - -
- - - -
-
+{% include 'header.html' %} {{description}} -
-
Dashboard created by KF7EEL - https://github.com/kf7eel/hblink3
HBLink created by N0MJS.
HBLink GitHub page
+{% include 'footer.html' %} - - diff --git a/scripts/dashboard/templates/footer.html b/scripts/dashboard/templates/footer.html new file mode 100644 index 0000000..a65e493 --- /dev/null +++ b/scripts/dashboard/templates/footer.html @@ -0,0 +1,4 @@ +
+
Dashboard created by KF7EEL - https://github.com/kf7eel/hblink3
HBLink created by N0MJS.
HBLink GitHub page
+ + diff --git a/scripts/dashboard/templates/header.html b/scripts/dashboard/templates/header.html new file mode 100644 index 0000000..79cfa10 --- /dev/null +++ b/scripts/dashboard/templates/header.html @@ -0,0 +1,25 @@ +

Logo

+

{{title}}

+
+ + + + + + + + +
+ + + + + +
+
diff --git a/scripts/dashboard/templates/help.html b/scripts/dashboard/templates/help.html new file mode 100644 index 0000000..d677333 --- /dev/null +++ b/scripts/dashboard/templates/help.html @@ -0,0 +1,19 @@ + + + + + {{title}} + + + +{% include 'header.html' %} +Help info here. +{% include 'footer.html' %} diff --git a/scripts/dashboard/templates/index.html b/scripts/dashboard/templates/index.html index cc3a133..b07d291 100644 --- a/scripts/dashboard/templates/index.html +++ b/scripts/dashboard/templates/index.html @@ -15,26 +15,7 @@ p { -

Logo

-

{{title}}

-
- - - - - - - -
- - - -
-
+{% include 'header.html' %}

Page automatically reloads every 2 minutes.

@@ -46,7 +27,5 @@ p {
-
-
Dashboard created by KF7EEL - https://github.com/kf7eel/hblink3
HBLink created by N0MJS.
HBLink GitHub page
- - + {% include 'header.html' %} +