From bfb22d0c3e5bc724dd5b9d9b232151d192df1294 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Thu, 14 Nov 2024 10:44:48 +0100 Subject: [PATCH] feat: include bank account info on about page --- weblate_web/context_processors.py | 2 ++ weblate_web/templates/about.html | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/weblate_web/context_processors.py b/weblate_web/context_processors.py index bcec5153ed..e36a55dff1 100644 --- a/weblate_web/context_processors.py +++ b/weblate_web/context_processors.py @@ -24,6 +24,7 @@ from django.utils.functional import SimpleLazyObject from django.utils.translation import override +from weblate_web.invoices.models import BANK_ACCOUNTS, Currency from weblate_web.models import Donation from weblate_web.remote import get_activity, get_changes, get_contributors, get_release @@ -66,6 +67,7 @@ def weblate_web(request): "activity_sum": sum(get_activity()[-7:]), "contributors": SimpleLazyObject(get_contributors), "changes": SimpleLazyObject(get_changes), + "bank_account": BANK_ACCOUNTS[Currency.EUR], "language_columns": [ language_urls[:language_col], language_urls[language_col : language_col * 2], diff --git a/weblate_web/templates/about.html b/weblate_web/templates/about.html index 1bc50fbc02..44a073ef94 100644 --- a/weblate_web/templates/about.html +++ b/weblate_web/templates/about.html @@ -211,6 +211,11 @@

{% trans "Contact" %}

76-438-1530
+
+
{% trans "Bank account" %}
+
{{ bank_account.raw_iban }}
+
+
{% trans "Contact us" %}