navbar.html 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. {% set menu = appbuilder.menu %}
  2. {% set languages = appbuilder.languages %}
  3. {% set WARNING_MSG = appbuilder.app.config.get('WARNING_MSG') %}
  4. <div class="navbar navbar-static-top {{menu.extra_classes}}" role="navigation">
  5. <div class="container-fluid">
  6. <div class="navbar-header">
  7. <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
  8. <span class="icon-bar"></span>
  9. <span class="icon-bar"></span>
  10. <span class="icon-bar"></span>
  11. </button>
  12. <a class="navbar-brand" href="/superset/profile/{{ current_user.username }}/">
  13. <img
  14. width="126"
  15. src="{{ appbuilder.app_icon }}"
  16. alt="{{ appbuilder.app_name }}"
  17. />
  18. </a>
  19. </div>
  20. <div class="navbar-collapse collapse">
  21. <ul class="nav navbar-nav">
  22. {% if WARNING_MSG %}
  23. <li class="alert alert-danger">
  24. {{ WARNING_MSG | safe }}
  25. </li>
  26. {% endif %}
  27. {% include 'appbuilder/navbar_menu.html' %}
  28. </ul>
  29. <ul class="nav navbar-nav navbar-right">
  30. {% include 'appbuilder/navbar_right.html' %}
  31. </ul>
  32. </div>
  33. </div>
  34. </div>