add link to about page, and fork me on github
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
from django.conf import settings
|
||||
|
||||
def about(request):
|
||||
return {'ABOUT_URL': settings.ABOUT_URL}
|
||||
@@ -15,6 +15,14 @@
|
||||
<a href="/monitor">Monitor</a>
|
||||
<a href="/transactions/show">Transactions</a>
|
||||
<a class="right" href="/accounts/logout/">Logout</a>
|
||||
<a class="right" href="{{ ABOUT_URL }}" target="_blank">About</a>
|
||||
<a class="right" href="https://github.com/tpokorra/walletmonitor" target="_blank">Fork me</a>
|
||||
</nav>
|
||||
{% else %}
|
||||
<nav class="topnav">
|
||||
<a href="/">Wallet Monitor</a>
|
||||
<a class="right" href="{{ ABOUT_URL }}" target="_blank">About</a>
|
||||
<a class="right" href="https://github.com/tpokorra/walletmonitor" target="_blank">Fork me</a>
|
||||
</nav>
|
||||
{% endif %}
|
||||
{% block content %}
|
||||
|
||||
@@ -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',
|
||||
],
|
||||
},
|
||||
},
|
||||
|
||||
@@ -14,3 +14,4 @@ EMAIL_HOST_PASSWORD = 'topsecret'
|
||||
EMAIL_USE_TLS = True
|
||||
|
||||
SITE_ID = 1
|
||||
ABOUT_URL = 'https://about.example.com'
|
||||
|
||||
Reference in New Issue
Block a user