From bbd781b66efe34823a4b6e1f1e0e5bd5be433988 Mon Sep 17 00:00:00 2001 From: Beto Dealmeida Date: Tue, 22 Jan 2019 14:27:51 -0800 Subject: [PATCH] Remove test URL (#6740) --- superset/config.py | 3 +++ superset/templates/appbuilder/navbar_right.html | 12 ++++++++++++ 2 files changed, 15 insertions(+) diff --git a/superset/config.py b/superset/config.py index 6271ce64c..2d32f973a 100644 --- a/superset/config.py +++ b/superset/config.py @@ -559,6 +559,9 @@ WEBDRIVER_CONFIGURATION = {} # The base URL to query for accessing the user interface WEBDRIVER_BASEURL = 'http://0.0.0.0:8080/' +# Send user to a link where they can report bugs +BUG_REPORT_URL = None + try: if CONFIG_PATH_ENV_VAR in os.environ: diff --git a/superset/templates/appbuilder/navbar_right.html b/superset/templates/appbuilder/navbar_right.html index 5db503981..878e93764 100644 --- a/superset/templates/appbuilder/navbar_right.html +++ b/superset/templates/appbuilder/navbar_right.html @@ -17,6 +17,7 @@ under the License. #} +{% set bug_report_url = appbuilder.app.config.get('BUG_REPORT_URL') %} {% set locale = session['locale'] %} {% if not locale %} {% set locale = 'en' %} @@ -34,6 +35,17 @@ {% endif %} +{% if bug_report_url %} +
  • + +   + +
  • +{% endif %} {% if languages.keys()|length > 1 %}