From d9d24e3c6056efeb466e2e675ccd672dfc3f3e56 Mon Sep 17 00:00:00 2001 From: Chris Hill-Scott Date: Fri, 25 Nov 2016 17:05:35 +0000 Subject: [PATCH] Remove the red header meaning signed in to admin MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit > Make the header bar red > > Red for admin is a good reckon. – 286fc308d9a64ab8effa3b9a575591b2f2f942da (part of https://github.com/alphagov/notifications-admin/pull/130) Starting to think it’s not such a good reckon. Users could take a guess at what it meant, but they often guessed wrong. However, changing the colour of the header bar _is_ useful for us internally to see which environment we’re in. So this commit makes three changes: 1. On live, the header bar is always standard GOV.UK blue 2. On other environments, the header bar is some other colour (local is very different, staging and preview are related colours) 3. If an enviroment has a different header colour, it has it even when you’re not logged in. --- app/templates/admin_template.html | 2 -- config.py | 6 +++--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/app/templates/admin_template.html b/app/templates/admin_template.html index c0d4dfa4a..14e399d36 100644 --- a/app/templates/admin_template.html +++ b/app/templates/admin_template.html @@ -5,11 +5,9 @@ - {% if current_user.is_authenticated %} - {% endif %} diff --git a/config.py b/config.py index c230a8041..0eaea31c4 100644 --- a/config.py +++ b/config.py @@ -81,20 +81,20 @@ class Test(Development): class Preview(Config): HTTP_PROTOCOL = 'https' - HEADER_COLOUR = '#F47738' # $orange + HEADER_COLOUR = '#F499BE' # $baby-pink CSV_UPLOAD_BUCKET_NAME = 'preview-notifications-csv-upload' class Staging(Config): SHOW_STYLEGUIDE = False HTTP_PROTOCOL = 'https' - HEADER_COLOUR = '#F47738' # $orange + HEADER_COLOUR = '#6F72AF' # $mauve CSV_UPLOAD_BUCKET_NAME = 'staging-notify-csv-upload' class Live(Config): SHOW_STYLEGUIDE = False - HEADER_COLOUR = '#B10E1E' # $red + HEADER_COLOUR = '#005EA5' # $govuk-blue HTTP_PROTOCOL = 'https' CSV_UPLOAD_BUCKET_NAME = 'live-notifications-csv-upload'