Bläddra i källkod

navbar active state

develop
Robin Thoni 9 år sedan
förälder
incheckning
0f1c62ce2a
1 ändrade filer med 4 tillägg och 4 borttagningar
  1. 4
    4
      admin/views/navbar.html

+ 4
- 4
admin/views/navbar.html Visa fil

@@ -16,10 +16,10 @@
16 16
         <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
17 17
             <ul class="nav navbar-nav navbar-left">
18 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 23
             </ul>
24 24
             <ul class="nav navbar-nav navbar-right">
25 25
                 <ul class="nav navbar-nav navbar-right">

Laddar…
Avbryt
Spara