소스 검색

navbar active state

develop
Robin Thoni 9 년 전
부모
커밋
0f1c62ce2a
1개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 4
    4
      admin/views/navbar.html

+ 4
- 4
admin/views/navbar.html 파일 보기

@@ -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">

Loading…
취소
저장