From e8cf0149037c1b010656c5ac2158d1a009a0c5ae Mon Sep 17 00:00:00 2001 From: Jakob Ketterl Date: Sun, 18 Apr 2021 17:49:13 +0200 Subject: [PATCH] introduce breadcrumbs in the web config --- htdocs/css/admin.css | 4 ++ htdocs/features.html | 2 + htdocs/features.js | 3 +- htdocs/settings/bookmarks.html | 2 + htdocs/settings/general.html | 2 + owrx/breadcrumb.py | 42 +++++++++++++++++++ owrx/controllers/feature.py | 11 +++++ owrx/controllers/settings/__init__.py | 9 +++- .../settings/backgrounddecoding.py | 5 +++ owrx/controllers/settings/bookmarks.py | 7 +++- owrx/controllers/settings/decoding.py | 6 ++- owrx/controllers/settings/general.py | 5 +++ owrx/controllers/settings/reporting.py | 8 +++- owrx/controllers/settings/sdr.py | 40 +++++++++++++++++- owrx/controllers/template.py | 5 --- owrx/feature.py | 1 - owrx/http.py | 3 +- 17 files changed, 139 insertions(+), 16 deletions(-) create mode 100644 owrx/breadcrumb.py create mode 100644 owrx/controllers/feature.py diff --git a/htdocs/css/admin.css b/htdocs/css/admin.css index 88d8da8..2c2e52b 100644 --- a/htdocs/css/admin.css +++ b/htdocs/css/admin.css @@ -151,4 +151,8 @@ h1 { .scheduler-static-time-inputs > select { flex: 1 0 auto; +} + +.breadcrumb { + margin-top: .5rem; } \ No newline at end of file diff --git a/htdocs/features.html b/htdocs/features.html index 485e373..53099b6 100644 --- a/htdocs/features.html +++ b/htdocs/features.html @@ -10,6 +10,7 @@ ${header}
+ ${breadcrumb}

OpenWebRX Feature Report

@@ -19,5 +20,6 @@
Available
+ ${breadcrumb}
\ No newline at end of file diff --git a/htdocs/features.js b/htdocs/features.js index 5ab0972..fef2817 100644 --- a/htdocs/features.js +++ b/htdocs/features.js @@ -13,8 +13,7 @@ $(function(){ }); $table.append( '' + - '' + name + '' + - '' + converter.makeHtml(details.description) + '' + + '' + name + '' + '' + (details.available ? 'YES' : 'NO') + '' + '' + requirements.join("") diff --git a/htdocs/settings/bookmarks.html b/htdocs/settings/bookmarks.html index 80ebe64..046015b 100644 --- a/htdocs/settings/bookmarks.html +++ b/htdocs/settings/bookmarks.html @@ -11,6 +11,7 @@ ${header}
+ ${breadcrumb}

Bookmarks

@@ -24,6 +25,7 @@ ${header}
+ ${breadcrumb}