From 55bd0fb28e2d10eb9e1fd2a07d22cbc83cc1b61a Mon Sep 17 00:00:00 2001 From: Timotheus Pokorra Date: Sat, 9 Jan 2021 06:19:41 +0100 Subject: [PATCH] add link to about page, and fork me on github --- apps/core/context_processors.py | 4 ++++ apps/core/templates/base.html | 8 ++++++++ walletmonitor/settings.py | 1 + walletmonitor/settings_local.py.example | 1 + 4 files changed, 14 insertions(+) create mode 100644 apps/core/context_processors.py diff --git a/apps/core/context_processors.py b/apps/core/context_processors.py new file mode 100644 index 0000000..ef5a73f --- /dev/null +++ b/apps/core/context_processors.py @@ -0,0 +1,4 @@ +from django.conf import settings + +def about(request): + return {'ABOUT_URL': settings.ABOUT_URL} diff --git a/apps/core/templates/base.html b/apps/core/templates/base.html index f332c33..7cbc06b 100644 --- a/apps/core/templates/base.html +++ b/apps/core/templates/base.html @@ -15,6 +15,14 @@ Monitor Transactions Logout + About + Fork me + + {% else %} + {% endif %} {% block content %} diff --git a/walletmonitor/settings.py b/walletmonitor/settings.py index 770fa9f..ac3ff5a 100644 --- a/walletmonitor/settings.py +++ b/walletmonitor/settings.py @@ -64,6 +64,7 @@ TEMPLATES = [ 'django.template.context_processors.request', 'django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages', + 'apps.core.context_processors.about', ], }, }, diff --git a/walletmonitor/settings_local.py.example b/walletmonitor/settings_local.py.example index 3baa2ba..06c2bb4 100644 --- a/walletmonitor/settings_local.py.example +++ b/walletmonitor/settings_local.py.example @@ -14,3 +14,4 @@ EMAIL_HOST_PASSWORD = 'topsecret' EMAIL_USE_TLS = True SITE_ID = 1 +ABOUT_URL = 'https://about.example.com'