From a0ad7acfcfc26c8da69eb236977f43d8c1c8f498 Mon Sep 17 00:00:00 2001 From: boyska Date: Mon, 8 Jul 2019 12:51:47 +0200 Subject: [PATCH] extra menu links in navbar --- larigira/config.py | 1 + larigira/dbadmin/templates/dbadmin_base.html | 3 +++ 2 files changed, 4 insertions(+) diff --git a/larigira/config.py b/larigira/config.py index 0a81dfa..d387945 100644 --- a/larigira/config.py +++ b/larigira/config.py @@ -20,6 +20,7 @@ def get_conf(prefix="LARIGIRA_"): conf["DB_URI"] = os.path.join(conf_dir, "db.json") conf["SCRIPTS_PATH"] = os.path.join(conf_dir, "scripts") conf["EXTRA_STATIC_PATH"] = os.path.join(conf_dir, "extra") + conf["EXTRA_MENU_LINKS"] = [] conf["ROUTE_PREFIX"] = "" conf["BOOTSTRAP_SERVE_LOCAL"] = True conf["SECRET_KEY"] = "Please replace me!" diff --git a/larigira/dbadmin/templates/dbadmin_base.html b/larigira/dbadmin/templates/dbadmin_base.html index d0ae7e4..c112d8d 100644 --- a/larigira/dbadmin/templates/dbadmin_base.html +++ b/larigira/dbadmin/templates/dbadmin_base.html @@ -41,6 +41,9 @@ $(function() {
  • Add time
  • Add audio
  • Calendar
  • + {% for link in config.EXTRA_MENU_LINKS %} +
  • {{link.text}}
  • + {% endfor %} {# collapse #}