Skip to content

Commit

Permalink
feat: include bank account info on about page
Browse files Browse the repository at this point in the history
  • Loading branch information
nijel committed Nov 14, 2024
1 parent fad8038 commit bfb22d0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions weblate_web/context_processors.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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],
Expand Down
5 changes: 5 additions & 0 deletions weblate_web/templates/about.html
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,11 @@ <h2 class="section-title" id="contact">{% trans "Contact" %}</h2>
<div class="line-right">76-438-1530</div>
<div class="clear"></div>
</div>
<div class="form-line">
<div class="line-left">{% trans "Bank account" %}</div>
<div class="line-right">{{ bank_account.raw_iban }}</div>
<div class="clear"></div>
</div>
</div>
<a href="mailto:[email protected]" class="button inline">{% trans "Contact us" %}</a>
</div>
Expand Down

0 comments on commit bfb22d0

Please sign in to comment.