diff --git a/.flask_cache/2029240f6d1128be89ddc32729463129 b/.flask_cache/2029240f6d1128be89ddc32729463129 new file mode 100644 index 0000000..aa3c92e Binary files /dev/null and b/.flask_cache/2029240f6d1128be89ddc32729463129 differ diff --git a/.flask_cache/49c1419bef5213bdee92277928c7c241 b/.flask_cache/49c1419bef5213bdee92277928c7c241 new file mode 100644 index 0000000..f43bd3a Binary files /dev/null and b/.flask_cache/49c1419bef5213bdee92277928c7c241 differ diff --git a/.flask_cache/74bc75c0764cbc805c70645cef1f026b b/.flask_cache/74bc75c0764cbc805c70645cef1f026b new file mode 100644 index 0000000..24b7970 Binary files /dev/null and b/.flask_cache/74bc75c0764cbc805c70645cef1f026b differ diff --git a/.flask_cache/c59a0149864f3a0ccffa8e150c81bc43 b/.flask_cache/c59a0149864f3a0ccffa8e150c81bc43 new file mode 100644 index 0000000..7008df3 Binary files /dev/null and b/.flask_cache/c59a0149864f3a0ccffa8e150c81bc43 differ diff --git a/hyperglass/configuration/__init__.py b/hyperglass/configuration/__init__.py index 5f36be5..592ebbf 100644 --- a/hyperglass/configuration/__init__.py +++ b/hyperglass/configuration/__init__.py @@ -298,13 +298,13 @@ class brand: else: return t["color_progressbar"] - def color_hero(): + def color_bg(): list = [] for t in branding: - if len(t["color_hero"]) == 0: + if len(t["color_bg"]) == 0: return "#fbfffe" else: - return t["color_hero"] + return t["color_bg"] def logo_path(): list = [] diff --git a/hyperglass/render/__init__.py b/hyperglass/render/__init__.py index 4a64df5..bf290bd 100644 --- a/hyperglass/render/__init__.py +++ b/hyperglass/render/__init__.py @@ -18,7 +18,6 @@ env = jinja2.Environment(loader=file_loader) # Converts templates/footer.md from Markdown to HTML md = Markdown() -# footer_file = os.path.join(dir, "templates/footer.md") footer_template = env.get_template("templates/footer.md") footer_jinja = footer_template.render(title=configuration.brand.title()) footer = footer_jinja @@ -53,7 +52,13 @@ class html: title=configuration.brand.title(), subtitle=configuration.brand.subtitle(), title_mode=configuration.brand.title_mode(), - color_hero=configuration.brand.color_hero(), + color_bg=configuration.brand.color_bg(), + color_btn_submit=configuration.brand.color_btn_submit(), + color_progressbar=configuration.brand.color_progressbar(), + color_tag_loctitle=configuration.brand.color_tag_loctitle(), + color_tag_cmdtitle=configuration.brand.color_tag_cmdtitle(), + color_tag_cmd=configuration.brand.color_tag_cmd(), + color_tag_loc=configuration.brand.color_tag_loc(), enable_credit=configuration.brand.enable_credit(), enable_footer=configuration.brand.enable_footer(), footer_content=md.convert(footer), @@ -94,7 +99,7 @@ class css: color_tag_cmdtitle=configuration.brand.color_tag_cmdtitle(), color_tag_cmd=configuration.brand.color_tag_cmd(), color_tag_loc=configuration.brand.color_tag_loc(), - color_hero=configuration.brand.color_hero(), + color_bg=configuration.brand.color_bg(), primary_font_url=configuration.brand.primary_font_url(), primary_font_name=configuration.brand.primary_font_name(), mono_font_url=configuration.brand.mono_font_url(), @@ -112,4 +117,4 @@ class css: logger.info("Rendered Sass templates to CSS files.") except: logger.error("Error rendering Sass template.") - raise TypeError("Error rendering Sass template.") + raise diff --git a/hyperglass/render/templates/base.html b/hyperglass/render/templates/base.html index 7ae4ded..897d168 100644 --- a/hyperglass/render/templates/base.html +++ b/hyperglass/render/templates/base.html @@ -1,29 +1,26 @@ - +
{% block head %}Powered by Hyperglass. Source code licensed BSD 3-Clause Clear. diff --git a/hyperglass/render/templates/footer.html b/hyperglass/render/templates/footer.html index 1d74b67..a4f28a6 100644 --- a/hyperglass/render/templates/footer.html +++ b/hyperglass/render/templates/footer.html @@ -1,30 +1,12 @@ -