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 2.0KB

1234567891011121314151617181920212223242526272829303132333435
  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 ui-sref-active="active"><a ui-sref="hosts" lu-show-permission="CAMOTION_HOST_GET">Hosts</a></li>
  19. <li ui-sref-active="active"><a ui-sref="cameras" lu-show-permission="CAMOTION_CAMERA_GET,CAMOTION_HOST_GET">Cameras</a></li>
  20. <li ui-sref-active="active"><a ui-sref="sensors" lu-show-permission="CAMOTION_SENSOR_GET,CAMOTION_HOST_GET">Sensors</a></li>
  21. <li ui-sref-active="active"><a ui-sref="commands" lu-show-permission="CAMOTION_COMMAND_GET,CAMOTION_HOST_GET">Commands</a></li>
  22. <li><a href="/luticate" target="_blank" ng-show="canSeeLuticate()">Luticate</a></li>
  23. </ul>
  24. <ul class="nav navbar-nav navbar-right">
  25. <ul class="nav navbar-nav navbar-right">
  26. <li ng-show="isLogged()"><a ui-sref="home">{{ getUsername() }}</a></li>
  27. <li ng-show="isLogged()"><a href="" ng-click="logout()">Logout</a></li>
  28. <li ng-show="!isLogged()"><a href="" ng-click="logout()">Login</a></li>
  29. </ul>
  30. </ul>
  31. </div>
  32. <!-- /.navbar-collapse -->
  33. </div>
  34. <!-- /.container -->
  35. </nav>