From f7d115d0defc2b43bcc7c4c762fe64d09c77cf22 Mon Sep 17 00:00:00 2001 From: Tom Byers Date: Tue, 31 Dec 2019 10:02:13 +0000 Subject: [PATCH] Revert "Remove signed_out template variable" This reverts commit 8a597437463872dbbcedec7b9677c0cceee21d4f. --- app/templates/admin_template.html | 10 +++++----- app/templates/views/signedout.html | 2 ++ 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/app/templates/admin_template.html b/app/templates/admin_template.html index 61afa8562..e79f170ea 100644 --- a/app/templates/admin_template.html +++ b/app/templates/admin_template.html @@ -147,11 +147,15 @@ {% set meta_suffix = 'Built by the Government Digital Service' %} {% endif %} - {% if current_user.is_authenticated %} + {% if signed_out %} {% 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" @@ -171,10 +175,6 @@ "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 ea9e7db75..6b3a4a44a 100644 --- a/app/templates/views/signedout.html +++ b/app/templates/views/signedout.html @@ -1,5 +1,7 @@ {% extends "fullwidth_template.html" %} +{% set signed_out = True %} + {% block meta %} {% endblock %}