Browse Source

navbar active state

develop
Robin Thoni 9 years ago
parent
commit
0f1c62ce2a
1 changed files with 4 additions and 4 deletions
  1. 4
    4
      admin/views/navbar.html

+ 4
- 4
admin/views/navbar.html View File

16
         <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
16
         <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
17
             <ul class="nav navbar-nav navbar-left">
17
             <ul class="nav navbar-nav navbar-left">
18
                 <li><a href="/luticate" target="_blank" ng-show="canSeeLuticate()">Luticate</a></li>
18
                 <li><a href="/luticate" target="_blank" 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,CAMOTION_HOST_GET">Cameras</a></li>
21
-                <li><a ui-sref="sensors" lu-show-permission="CAMOTION_SENSOR_GET,CAMOTION_HOST_GET">Sensors</a></li>
22
-                <li><a ui-sref="commands" lu-show-permission="CAMOTION_COMMAND_GET,CAMOTION_HOST_GET">Commands</a></li>
19
+                <li ui-sref-active="active"><a ui-sref="hosts" lu-show-permission="CAMOTION_HOST_GET">Hosts</a></li>
20
+                <li ui-sref-active="active"><a ui-sref="cameras" lu-show-permission="CAMOTION_CAMERA_GET,CAMOTION_HOST_GET">Cameras</a></li>
21
+                <li ui-sref-active="active"><a ui-sref="sensors" lu-show-permission="CAMOTION_SENSOR_GET,CAMOTION_HOST_GET">Sensors</a></li>
22
+                <li ui-sref-active="active"><a ui-sref="commands" lu-show-permission="CAMOTION_COMMAND_GET,CAMOTION_HOST_GET">Commands</a></li>
23
             </ul>
23
             </ul>
24
             <ul class="nav navbar-nav navbar-right">
24
             <ul class="nav navbar-nav navbar-right">
25
                 <ul class="nav navbar-nav navbar-right">
25
                 <ul class="nav navbar-nav navbar-right">

Loading…
Cancel
Save