Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

navbar.html 1.6KB

1234567891011121314151617181920212223242526272829303132
  1. <body>
  2. <!-- Navigation -->
  3. <nav class="navbar navbar-inverse navbar-fixed-top" role="navigation" ng-controller="NavBarController">
  4. <div class="container">
  5. <!-- Brand and toggle get grouped for better mobile display -->
  6. <div class="navbar-header">
  7. <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
  8. <span class="sr-only">Toggle navigation</span>
  9. <span class="icon-bar"></span>
  10. <span class="icon-bar"></span>
  11. <span class="icon-bar"></span>
  12. </button>
  13. <a class="navbar-brand" ui-sref="home">Administration</a>
  14. </div>
  15. <!-- Collect the nav links, forms, and other content for toggling -->
  16. <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
  17. <ul class="nav navbar-nav navbar-left">
  18. <li><a href="/luticate" ng-show="canSeeLuticate()">Luticate</a></li>
  19. <li><a ui-sref="hosts" lu-show-permission="CAMOTION_HOST_GET">Hosts</a></li>
  20. <li><a ui-sref="cameras" lu-show-permission="CAMOTION_CAMERA_GET">Cameras</a></li>
  21. </ul>
  22. <ul class="nav navbar-nav navbar-right">
  23. <ul class="nav navbar-nav navbar-right">
  24. <li ng-show="isLogged()"><a ui-sref="home">{{ getUsername() }}</a></li>
  25. <li ng-show="isLogged()"><a href="" ng-click="logout()">Logout</a></li>
  26. </ul>
  27. </ul>
  28. </div>
  29. <!-- /.navbar-collapse -->
  30. </div>
  31. <!-- /.container -->
  32. </nav>