Add link to documentation (#7251)
This commit is contained in:
parent
821860ea7d
commit
51544212b6
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
{% if bug_report_url %}
|
||||
<li>
|
||||
<a
|
||||
|
|
|
|||
Loading…
Reference in New Issue