diff --git a/alliance_auth/settings.py.example b/alliance_auth/settings.py.example index 3d77e872..7d402b56 100755 --- a/alliance_auth/settings.py.example +++ b/alliance_auth/settings.py.example @@ -188,6 +188,15 @@ EMAIL_HOST_USER = os.environ.get('AA_EMAIL_HOST_USER', '') EMAIL_HOST_PASSWORD = os.environ.get('AA_EMAIL_HOST_PASSWORD', '') EMAIL_USE_TLS = 'True' == os.environ.get('AA_EMAIL_USE_TLS', 'True') +#################### +# Front Page Links +#################### +# KILLBOARD_URL - URL for your killboard. Blank to hide link +# MEDIA_URL - URL for your media page (youtube etc). Blank to hide link +#################### +KILLBOARD_URL = os.environ.get('AA_KILLBOARD_URL', DOMAIN + '/killboard') +MEDIA_URL = os.environ.get('AA_MEDIA_URL', '') + ######################### # Default Group Settings ######################### diff --git a/stock/templates/public/index.html b/stock/templates/public/index.html index 76821d67..039b7523 100644 --- a/stock/templates/public/index.html +++ b/stock/templates/public/index.html @@ -52,18 +52,27 @@

- -

- - - -

- -

- - - -

+ {% if FORUM_URL %} +

+ + + +

+ {% endif %} + {% if KILLBOARD_URL %} +

+ + + +

+ {% endif %} + {% if MEDIA_URL %} +

+ + + +

+ {% endif %} diff --git a/util/context_processors.py b/util/context_processors.py index 3ddbbe92..2d8444a3 100755 --- a/util/context_processors.py +++ b/util/context_processors.py @@ -44,4 +44,6 @@ def domain_url(request): 'TEAMSPEAK3_PUBLIC_URL': settings.TEAMSPEAK3_PUBLIC_URL, 'JACK_KNIFE_URL': settings.JACK_KNIFE_URL, 'DISCORD_SERVER_ID': settings.DISCORD_SERVER_ID, + 'KILLBOARD_URL': settings.KILLBOARD_URL, + 'MEDIA_URL': settings.MEDIA_URL, 'CURRENT_UTC_TIME': timezone.now()}