From b73b534022f1435b63d334cdd0b79bc907d38d96 Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Thu, 16 Jun 2016 16:27:18 -0400 Subject: [PATCH] Disable hosted status on 500 pages Fixes #1547 --- endpoints/common.py | 1 + templates/500.html | 2 ++ templates/error.html | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/endpoints/common.py b/endpoints/common.py index 287d7cc49..ad4e40a19 100644 --- a/endpoints/common.py +++ b/endpoints/common.py @@ -205,6 +205,7 @@ def render_page_template(name, route_data=None, **kwargs): oauth_set=json.dumps(get_oauth_config()), scope_set=json.dumps(scopes.app_scopes(app.config)), vuln_priority_set=json.dumps(PRIORITY_LEVELS), + enterprise_logo=app.config.get('ENTERPRISE_LOGO_URL', ''), mixpanel_key=app.config.get('MIXPANEL_KEY', ''), google_tagmanager_key=app.config.get('GOOGLE_TAGMANAGER_KEY', ''), sentry_public_dsn=app.config.get('SENTRY_PUBLIC_DSN', ''), diff --git a/templates/500.html b/templates/500.html index 2e3ea4b08..28f81baa6 100644 --- a/templates/500.html +++ b/templates/500.html @@ -11,6 +11,7 @@

If the issue persists and is blocking you from getting stuff done, contact us.

+ {% if has_billing %}
Current Service Status: (Loading) @@ -23,4 +24,5 @@ renderTo: '#status-elem' }); + {% endif %} {% endblock %} diff --git a/templates/error.html b/templates/error.html index 21560cdbc..3bc28ffbb 100644 --- a/templates/error.html +++ b/templates/error.html @@ -83,7 +83,7 @@
- + {% block content %} {% endblock %}