From 8a597437463872dbbcedec7b9677c0cceee21d4f Mon Sep 17 00:00:00 2001 From: Tom Byers Date: Mon, 30 Dec 2019 16:27:15 +0000 Subject: [PATCH] Remove signed_out template variable Turns out there's no need for it: https://github.com/alphagov/notifications-admin/pull/3181#discussion_r362020673 --- app/templates/admin_template.html | 10 +++++----- app/templates/views/signedout.html | 2 -- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/app/templates/admin_template.html b/app/templates/admin_template.html index e79f170ea..61afa8562 100644 --- a/app/templates/admin_template.html +++ b/app/templates/admin_template.html @@ -147,15 +147,11 @@ {% set meta_suffix = 'Built by the Government Digital Service' %} {% endif %} - {% if signed_out %} + {% if current_user.is_authenticated %} {% set using_notify_links = { "title": "Using Notify", "columns": 1, "items": [ - { - "href": url_for("main.get_started"), - "text": "Get started" - }, { "href": url_for("main.trial_mode_new"), "text": "Trial mode" @@ -175,6 +171,10 @@ "title": "Using Notify", "columns": 1, "items": [ + { + "href": url_for("main.get_started"), + "text": "Get started" + }, { "href": url_for("main.trial_mode_new"), "text": "Trial mode" diff --git a/app/templates/views/signedout.html b/app/templates/views/signedout.html index 6b3a4a44a..ea9e7db75 100644 --- a/app/templates/views/signedout.html +++ b/app/templates/views/signedout.html @@ -1,7 +1,5 @@ {% extends "fullwidth_template.html" %} -{% set signed_out = True %} - {% block meta %} {% endblock %}