From 12cbc04080958f9659a2de802247f4143d098e72 Mon Sep 17 00:00:00 2001 From: Chris Heathcote Date: Mon, 7 Dec 2015 16:18:05 +0000 Subject: [PATCH] Changed main GOV.UK link depending on whether user is logged in or not Goes to / for not logged in, /dashboard for logged in. --- app/templates/admin_template.html | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/app/templates/admin_template.html b/app/templates/admin_template.html index e31094bed..7b8dd4227 100644 --- a/app/templates/admin_template.html +++ b/app/templates/admin_template.html @@ -1,12 +1,15 @@ {% extends "govuk_template.html" %} + {% block page_title %} GOV.UK notifications admin {% endblock %} + {% block cookie_message %} {% endblock %} + {% block inside_header %}
@@ -15,5 +18,13 @@ GOV.UK notifications admin
{% endblock %} + {% set global_header_text = "GOV.UK Notify" %} + +{% if not current_user.is_authenticated() %} + {% set homepage_url = url_for('main.index') %} +{% else %} + {% set homepage_url = url_for('main.dashboard') %} +{% endif %} +