From 02dc27deac2b44acdb1f4d7eb6f7b62b454c15c2 Mon Sep 17 00:00:00 2001 From: Adarnof Date: Sat, 28 Nov 2015 05:08:37 +0000 Subject: [PATCH] Corrected ALLIANCE_NAME context processor to render alliance name if IS_CORP false. Added ALLIANCE_NAME vs CORP_NAME toggle for index page title per IS_CORP value. Closes #85 --- stock/templates/public/index.html | 8 +++++++- util/context_processors.py | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/stock/templates/public/index.html b/stock/templates/public/index.html index 03341626..76821d67 100644 --- a/stock/templates/public/index.html +++ b/stock/templates/public/index.html @@ -32,7 +32,13 @@ - My Corp and/or Alliance Name + + {% if IS_CORP %} + {{ CORP_NAME }} + {% else %} + {{ ALLIANCE_NAME }} + {% endif %} +