navbar.html 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <nav class="navbar navbar-default" role="navigation" style="background-color: #fff;">
  2. <div class="container-fluid">
  3. <div class="navbar-header">
  4. <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse">
  5. </button>
  6. <a class="navbar-brand" href="/">Falcon+</a>
  7. </div>
  8. <div class="collapse navbar-collapse navbar-ex1-collapse">
  9. <ul class="nav navbar-nav navbar-right">
  10. <li {%if g.nav_menu == "nav_dashboard"%}class="active"{%endif%}><a href="/">Dashboard</a></li>
  11. <li class="dropdown" {%if g.nav_menu == "nav_screen"%}class="active"{%endif%}>
  12. <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Screen<span class="caret"></span></a>
  13. <ul class="dropdown-menu" role="menu" style="font-size:12px;">
  14. <li><a href="/screen">screens</a></li>
  15. <li><a href="/screen/add">+screen</a></li>
  16. </ul>
  17. </li>
  18. <li {%if g.nav_menu == "p_hostgroup"%}class="active"{%endif%}><a href="/portal/hostgroup">HostGroups</a></li>
  19. <li {%if g.nav_menu == "p_template"%}class="active"{%endif%}><a href="/portal/template">Templates</a></li>
  20. <li {%if g.nav_menu == "p_expression"%}class="active"{%endif%}><a href="/portal/expression">Expressions</a></li>
  21. <li {%if g.nav_menu == "p_nodata"%}class="active"{%endif%}><a href="/portal/nodata">Nodata</a></li>
  22. <li {%if g.nav_menu == "p_alarm-dash"%}class="active"{%endif%}><a href="/portal/alarm-dash">Alarm-Dashboard</a></li>
  23. <li class="dropdown">
  24. <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">
  25. {%if g.user%} Welcome {{g.user.name}}{%else%}Sign in{%endif%}<span class="caret"></span></a>
  26. <ul class="dropdown-menu" role="menu" style="font-size:12px;">
  27. {%if g.user%}
  28. <li><a href="/user/profile">Profile</a></li>
  29. <li><a href="/user/list">Users</a></li>
  30. <li><a href="/team/list">Teams</a></li>
  31. <li><a href="/auth/logout">Logout</a></li>
  32. {%else%}
  33. <li><a href="/auth/login">Login</a></li>
  34. <li><a href="/auth/register">Sign Up</a></li>
  35. {%endif%}
  36. <li><a href="https://github.com/open-falcon/dashboard">fork me on Github</a></li>
  37. </ul>
  38. </li>
  39. </ul>
  40. </div>
  41. </div>
  42. </nav>