Add link to documentation (#7251)

This commit is contained in:
Beto Dealmeida 2019-04-09 09:40:19 -07:00 committed by GitHub
parent 821860ea7d
commit 51544212b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 0 deletions

View File

@ -592,6 +592,8 @@ WEBDRIVER_BASEURL = 'http://0.0.0.0:8080/'
# Send user to a link where they can report bugs
BUG_REPORT_URL = None
# Send user to a link where they can read more about Superset
DOCUMENTATION_URL = None
# What is the Last N days relative in the time selector to:
# 'today' means it is midnight (00:00:00) of today in the local timezone

View File

@ -18,6 +18,7 @@
#}
{% set bug_report_url = appbuilder.app.config.get('BUG_REPORT_URL') %}
{% set documentation_url = appbuilder.app.config.get('DOCUMENTATION_URL') %}
{% set locale = session['locale'] %}
{% if not locale %}
{% set locale = 'en' %}
@ -35,6 +36,17 @@
</ul>
</li>
{% endif %}
{% if documentation_url %}
<li>
<a
tabindex="-1"
href="{{ documentation_url }}"
title="Documentation"
>
<i class="fa fa-question"></i>&nbsp;
</a>
</li>
{% endif %}
{% if bug_report_url %}
<li>
<a