From 84f3fa72ae075cee59882d26cd92d25399e0124d Mon Sep 17 00:00:00 2001 From: Pepijn Goossens Date: Thu, 5 Jan 2017 11:45:32 +0100 Subject: [PATCH] Add fontawesome icons to navbar (you need to modify configuration file!) --- example.conf | 13 +++++++++++++ server.py | 1 + templates/navbar.html | 2 +- 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/example.conf b/example.conf index 0135e7b..3cd14b2 100644 --- a/example.conf +++ b/example.conf @@ -26,6 +26,19 @@ Statistics = statistics Server = server Instellingen = instellingen + [[icons]] + dashboard = dashboard + woonkamer = home + slaapkamer = bed + badkamer = bath + auto = automobile + tuin = bug + security = shield + verkeer = road + flitsers = camera + statistics = line-chart + server = desktop + instellingen = wrench # Each navbar item needs a section. Components specify which components are displayed on the page. Other subsections contain names, Domoticz IDX's and options of the components displayed. [dashboard] diff --git a/server.py b/server.py index a24ee2e..f54c665 100755 --- a/server.py +++ b/server.py @@ -32,6 +32,7 @@ def generatePage(): blockArray = [] configValues = {} configValues["navbar"] = config["navbar"]["menu"] + configValues["navbar_icons"] = config["navbar"]["icons"] configValues["server_location"] = config["general_settings"]["server"].get("url") configValues["flask_server_location"] = config["general_settings"]["server"].get("flask_url") configValues["domoboard"] = config["general_settings"]["domoboard"] diff --git a/templates/navbar.html b/templates/navbar.html index 7ca0a5b..67fd58a 100644 --- a/templates/navbar.html +++ b/templates/navbar.html @@ -20,7 +20,7 @@