header.hbs 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <nav class="navbar navbar-inverse navbar-static-top">
  2. <div class="container-fluid">
  3. <div class="navbar-header">
  4. <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar">
  5. <span class="sr-only">Toggle navigation</span>
  6. <span class="icon-bar"></span>
  7. <span class="icon-bar"></span>
  8. <span class="icon-bar"></span>
  9. </button>
  10. {{!-- <a class="navbar-brand" href="{{basePath "/"}}"><img src="{{basePath "/static/nsq_blue.png"}}" width="30" height="30">NSQ</a> --}}
  11. <a class="navbar-brand" href="{{basePath "/"}}">SMQ</a>
  12. </div>
  13. <div class="collapse navbar-collapse" id="navbar">
  14. <ul class="nav navbar-nav">
  15. <li><a class="link" href="{{basePath "/"}}">消息主题</a></li>
  16. <li><a class="link" href="{{basePath "/nodes"}}">消息服务实例</a></li>
  17. <li><a class="link" href="{{basePath "/counter"}}">统计</a></li>
  18. <li><a class="link" href="{{basePath "/lookup"}}">服务发现</a></li>
  19. {{#if graph_enabled}}
  20. <li class="dropdown">
  21. <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"><span class="glyphicon glyphicon-picture white"></span> {{graph_interval}} <span class="caret"></span></a>
  22. <ul class="dropdown-menu">
  23. <li class="dropdown-header">Graph Timeframe</li>
  24. {{#each graph_intervals}}
  25. <li><a href="javascript:;">{{this}}</a></li>
  26. {{/each}}
  27. </ul>
  28. </li>
  29. {{/if}}
  30. </ul>
  31. <ul class="nav navbar-nav navbar-right">
  32. <li class="hidden-xs"><p class="navbar-text"><span class="label label-success">v1.0.0</span></p></li>
  33. </ul>
  34. </ul>
  35. </div>
  36. </div>
  37. </nav>