mirror of
https://github.com/apache/superset.git
synced 2026-04-17 23:25:05 +00:00
At Airbnb we use these WARNING_MSG configuration element to make it clear that we're in the staging environment. Before this PR it would render under the navbar and mess up some of the heights configurations, where you wouldn't be able to scroll all the way to the bottom of the page. This fixes it.
51 lines
1.7 KiB
HTML
51 lines
1.7 KiB
HTML
{% set menu = appbuilder.menu %}
|
|
{% set languages = appbuilder.languages %}
|
|
{% set WARNING_MSG = appbuilder.app.config.get('WARNING_MSG') %}
|
|
|
|
<div class="navbar navbar-static-top {{menu.extra_classes}}" role="navigation">
|
|
<div class="container{{ '-fluid' if not navbar_container else '' }}">
|
|
<div class="navbar-header">
|
|
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
|
|
<span class="icon-bar"></span>
|
|
<span class="icon-bar"></span>
|
|
<span class="icon-bar"></span>
|
|
</button>
|
|
<a class="navbar-brand" href="/superset/profile/{{ current_user.username }}/">
|
|
<img
|
|
width="126" src="{{ appbuilder.app_icon }}"
|
|
alt="{{ appbuilder.app_name }}"
|
|
/>
|
|
</a>
|
|
</div>
|
|
<div class="navbar-collapse collapse">
|
|
<ul class="nav navbar-nav">
|
|
{% if WARNING_MSG %}
|
|
<li class="alert alert-danger">
|
|
{{ WARNING_MSG | safe }}
|
|
</li>
|
|
{% endif %}
|
|
{% include 'appbuilder/navbar_menu.html' %}
|
|
</ul>
|
|
<ul class="nav navbar-nav navbar-right">
|
|
{% include 'appbuilder/navbar_right.html' %}
|
|
<li>
|
|
<a href="/static/assets/version_info.json" title="Version info">
|
|
<i class="fa fa-code-fork"></i>
|
|
</a>
|
|
</li>
|
|
<li>
|
|
<a href="https://github.com/airbnb/superset" title="Superset's Github">
|
|
<i class="fa fa-github"></i>
|
|
</a>
|
|
</li>
|
|
<li>
|
|
<a href="http://airbnb.io/superset" title="Documentation">
|
|
<i class="fa fa-book"></i>
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|