diff --git a/app/assets/stylesheets/components/banner.scss b/app/assets/stylesheets/components/banner.scss index f6c08fba9..e690010f0 100644 --- a/app/assets/stylesheets/components/banner.scss +++ b/app/assets/stylesheets/components/banner.scss @@ -1,5 +1,6 @@ %banner, -.banner { +.banner, +.banner-default { @include core-19; background: $turquoise; diff --git a/app/main/views/api_keys.py b/app/main/views/api_keys.py index e2d77bf31..fd29426ae 100644 --- a/app/main/views/api_keys.py +++ b/app/main/views/api_keys.py @@ -51,5 +51,5 @@ def revoke_api_key(service_id, key_id): ) elif request.method == 'POST': api_key_api_client.revoke_api_key(service_id=service_id, key_id=key_id) - flash('‘{}’ was revoked'.format(key_name)) + flash('‘{}’ was revoked'.format(key_name), 'default') return redirect(url_for('.api_keys', service_id=service_id)) diff --git a/app/templates/admin_template.html b/app/templates/admin_template.html index 42505fc90..346959cba 100644 --- a/app/templates/admin_template.html +++ b/app/templates/admin_template.html @@ -73,7 +73,11 @@ {% with messages = get_flashed_messages(with_categories=true) %} {% if messages %} {% for category, message in messages %} - {{ banner(message, 'dangerous', delete_button="Yes, delete this template" if 'delete' == category else None)}} + {{ banner( + message, + 'default' if category == 'default' else 'dangerous', + delete_button="Yes, delete this template" if 'delete' == category else None + )}} {% endfor %} {% endif %} {% endwith %}