Skip to content

Commit

Permalink
Remove test URL (#6740)
Browse files Browse the repository at this point in the history
(cherry picked from commit bbd781b)
  • Loading branch information
betodealmeida authored and xtinec committed Feb 5, 2019
1 parent ed0f0ab commit 7f86517
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
3 changes: 3 additions & 0 deletions superset/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -558,6 +558,9 @@ class CeleryConfig(object):
# 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:
Expand Down
12 changes: 12 additions & 0 deletions superset/templates/appbuilder/navbar_right.html
Original file line number Diff line number Diff line change
Expand Up @@ -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' %}
Expand All @@ -34,6 +35,17 @@
</ul>
</li>
{% endif %}
{% if bug_report_url %}
<li>
<a
tabindex="-1"
href="{{ bug_report_url }}"
title="Report a bug"
>
<i class="fa fa-bug"></i>&nbsp;
</a>
</li>
{% endif %}
{% if languages.keys()|length > 1 %}
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="javascript:void(0)">
Expand Down

0 comments on commit 7f86517

Please sign in to comment.