diff --git a/config.ini b/config.ini index f6432ae..7653a5f 100644 --- a/config.ini +++ b/config.ini @@ -2,6 +2,7 @@ separator_char = ; timezone = Europe/Berlin mail = abgame@21x9.org +base_url = https://ab.21x9.org [i18n] lang = de @@ -11,3 +12,4 @@ separator = oder questions_prefix = Es gibt derzeit questions_suffix = Fragen. send_questions = Einreichen! +desc = Ein simples Entweder/Oder-Entscheidungsspiel diff --git a/game.py b/game.py index 520e6a6..f71a91e 100755 --- a/game.py +++ b/game.py @@ -65,11 +65,13 @@ def hello(): title = config.get('i18n', 'title') mail = config.get('main', 'mail') more = config.get('i18n', 'more') + desc = config.get('i18n', 'desc') questions_prefix = config.get('i18n', 'questions_prefix') questions_suffix = config.get('i18n', 'questions_suffix') send_questions = config.get('i18n', 'send_questions') separator = config.get('i18n', 'separator') separator_char = config.get('main', 'separator_char') + url = config.get('main', 'base_url') ablines = [] now = datetime.now(tz=tz) @@ -91,7 +93,7 @@ def hello(): with open("ab.txt", "r") as f: num_lines = sum(1 for _ in f) - return render_template('index.html', title=title, separator=separator, content=ablines, num_lines=num_lines, epoch=epoch, mailto=mail, more=more, questions_prefix=questions_prefix, questions_suffix=questions_suffix, send_questions=send_questions, lang=lang) + return render_template('index.html', title=title, separator=separator, content=ablines, num_lines=num_lines, epoch=epoch, mailto=mail, more=more, questions_prefix=questions_prefix, questions_suffix=questions_suffix, send_questions=send_questions, lang=lang, url=url, desc=desc) def getContent(): lines = [a.strip() for a in open("ab.txt", "r").readlines()] diff --git a/templates/index.html b/templates/index.html index bb38d66..9f991de 100644 --- a/templates/index.html +++ b/templates/index.html @@ -12,6 +12,12 @@ + + + + + +