tabtitles: add configuration entry to set a prefix on tabtitles

This commit is contained in:
Darks 2023-06-07 22:06:56 +02:00
parent 6238f72d6d
commit b892d9ae68
Signed by: Darks
GPG Key ID: 7515644268BE1433
2 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,5 @@
<head>
<title>{{ tabtitle or "Planète Casio" }}</title>
<title>{{ V5Config.TABTITLE_PREFIX + (tabtitle or "Planète Casio") }}</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">

View File

@ -83,6 +83,8 @@ class DefaultConfig(object):
SLOW_REQUEST_THRESHOLD = 0.400 # s
# Whether to enable flask-debug-toolbar
ENABLE_FLASK_DEBUG_TOOLBAR = False
# Tab title prefix. Useful to dissociate local/dev/prod tabs
TABTITLE_PREFIX = ""
class V5Config(LocalConfig, DefaultConfig):