From e33ed59367b3f80b6c2c7fc7f914a3eef2689312 Mon Sep 17 00:00:00 2001 From: Jan Hartig <jan.hartig@ptb.de> Date: Tue, 15 Aug 2023 11:34:20 +0200 Subject: [PATCH] Change to more readable contact config --- config.example.toml | 7 ++++--- templates/base.html | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/config.example.toml b/config.example.toml index 484a2b7..0c7bf39 100644 --- a/config.example.toml +++ b/config.example.toml @@ -4,9 +4,10 @@ MAX_CONTENT_LENGTH = 10 # in GB ENABLED_LOCALISATIONS = [ "de", "en" ] -CONTACT_ORG = "Fun Inc." -CONTACT_NAME = "John Smith" -CONTACT_MAIL = "john.smith@example.com" +[ CONTACT ] +ORG = "Fun Inc." +NAME = "John Smith" +MAIL = "john.smith@example.com" [ MAIL ] FROM = "funinc@example.com" diff --git a/templates/base.html b/templates/base.html index f8b4eeb..309091b 100644 --- a/templates/base.html +++ b/templates/base.html @@ -57,7 +57,7 @@ </p> <br> <p class="mb-1">{{ config["LOCALISATIONS"]["contact"]["text"][request.language] }}:</p> - <p class="mb-1">{{ config["CONTACT_ORG"] }} <a class="link-secondary" href="mailto:{{ config[" CONTACT_MAIL"]}}">{{ config["CONTACT_NAME"] }}</a></p> + <p class="mb-1">{{ config["CONTACT"]["ORG"] }} <a class="link-secondary" href="mailto:{{ config["CONTACT"]["MAIL"] }}">{{ config["CONTACT"]["NAME"] }}</a></p> <p class="font-monospace"><a class="link-secondary" target="_blank" referrerpolicy="no-referrer" href="https://gitlab1.ptb.de/janhartig/whisper-webvtt-transcriber">whisper-webvtt-transcriber</a></p> </div> </footer> -- GitLab