Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add link to documentation #7251

Merged
merged 1 commit into from
Apr 9, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions superset/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -592,6 +592,8 @@ class CeleryConfig(object):

# 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
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 @@ -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' %}
Expand All @@ -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
Expand Down