From 6ad311feb3cd0770e974474a099391fb39502fc9 Mon Sep 17 00:00:00 2001 From: Brook Elgie Date: Wed, 8 Feb 2017 15:42:46 +0000 Subject: [PATCH] [#854] Prevent login appearing on Index site --- census/views/base.html | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/census/views/base.html b/census/views/base.html index b48819b5..0fecc02c 100644 --- a/census/views/base.html +++ b/census/views/base.html @@ -162,12 +162,14 @@ {{ gettext("Data License (Public Domain)") }}. {{ gettext("Source code") }}.

- - {% if currentUser %} - {{format(gettext("Logged in as %(name)s"), { name: currentUser.firstName })}} - | {{ gettext("Log out") }} - {% else %} - {{ gettext("Login") }} + {% if not is_index %} + + {% if currentUser %} + {{format(gettext("Logged in as %(name)s"), { name: currentUser.firstName })}} + | {{ gettext("Log out") }} + {% else %} + {{ gettext("Login") }} + {% endif %} {% endif %} {% if locales.length > 1 %}