This is an automated email from the ASF dual-hosted git repository.
beto pushed a commit to branch lyftga
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git
The following commit(s) were added to refs/heads/lyftga by this push:
new 5154421 Add link to documentation (#7251)
5154421 is described below
commit 51544212b654181a7fc968a6cda4f52670f7a48e
Author: Beto Dealmeida <[email protected]>
AuthorDate: Tue Apr 9 09:40:19 2019 -0700
Add link to documentation (#7251)
---
superset/config.py | 2 ++
superset/templates/appbuilder/navbar_right.html | 12 ++++++++++++
2 files changed, 14 insertions(+)
diff --git a/superset/config.py b/superset/config.py
index 96ccb09..b402fec 100644
--- a/superset/config.py
+++ b/superset/config.py
@@ -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
diff --git a/superset/templates/appbuilder/navbar_right.html
b/superset/templates/appbuilder/navbar_right.html
index 878e937..73c545e 100644
--- a/superset/templates/appbuilder/navbar_right.html
+++ b/superset/templates/appbuilder/navbar_right.html
@@ -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