mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-06 16:18:25 -04:00
Stop email preview showing brand name
This is a leftover from when email brands didn't have a 'text' field. It also adds some tests to check the brand name is displaying correctly.
This commit is contained in:
@@ -91,7 +91,7 @@ def email_template():
|
||||
brand_banner = False
|
||||
else:
|
||||
email_branding = email_branding_client.get_email_branding(branding_style)['email_branding']
|
||||
brand_name = email_branding['name']
|
||||
brand_name = email_branding['text']
|
||||
brand_colour = email_branding['colour']
|
||||
brand_logo = 'https://{}/{}'.format(get_cdn_domain(), email_branding['logo'])
|
||||
govuk_banner = branding_type in ['govuk', 'both']
|
||||
|
||||
Reference in New Issue
Block a user