You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

navbar.html 1.6KB

12345678910111213141516171819202122232425262728293031
  1. <!-- Navigation -->
  2. <nav class="navbar navbar-inverse navbar-fixed-top" role="navigation" ng-controller="NavBarController">
  3. <div class="container">
  4. <!-- Brand and toggle get grouped for better mobile display -->
  5. <div class="navbar-header">
  6. <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
  7. <span class="sr-only">Toggle navigation</span>
  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" ui-sref="login">App</a>
  13. </div>
  14. <!-- Collect the nav links, forms, and other content for toggling -->
  15. <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
  16. <ul class="nav navbar-nav navbar-left">
  17. <li ui-sref-active="active"><a ui-sref="item" lu-show-permission="PERMISSION">Item</a></li>
  18. <li><a href="/admin" target="_blank" ng-show="canSeeAdmin()">Administration</a></li>
  19. </ul>
  20. <ul class="nav navbar-nav navbar-right">
  21. <ul class="nav navbar-nav navbar-right">
  22. <li ng-show="isLogged()"><a ui-sref="cameras">{{ getUsername() }}</a></li>
  23. <li ng-show="isLogged()"><a href="" ng-click="logout()">Logout</a></li>
  24. <li ng-show="!isLogged()"><a href="" ng-click="logout()">Login</a></li>
  25. </ul>
  26. </ul>
  27. </div>
  28. <!-- /.navbar-collapse -->
  29. </div>
  30. <!-- /.container -->
  31. </nav>