Matteo Scandolo | 500e4c4 | 2017-08-08 13:05:24 -0700 | [diff] [blame] | 1 | |
| 2 | <!-- |
| 3 | Copyright 2017-present Open Networking Foundation |
| 4 | |
| 5 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | you may not use this file except in compliance with the License. |
| 7 | You may obtain a copy of the License at |
| 8 | |
| 9 | http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | |
| 11 | Unless required by applicable law or agreed to in writing, software |
| 12 | distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | See the License for the specific language governing permissions and |
| 15 | limitations under the License. |
| 16 | --> |
| 17 | |
| 18 | |
Matteo Scandolo | 266907e | 2016-12-20 13:41:42 -0800 | [diff] [blame] | 19 | <!-- Navigation --> |
| 20 | <aside class="navigation"> |
| 21 | <!-- Navigation--> |
| 22 | <nav> |
| 23 | <ul class="nav luna-nav"> |
| 24 | <!--<li class="nav-category">--> |
| 25 | <!--Main--> |
| 26 | <!--</li>--> |
| 27 | <li |
| 28 | ng-repeat="route in vm.routes track by $index" |
Matteo Scandolo | 00d9789 | 2016-12-23 17:53:12 -0800 | [diff] [blame] | 29 | ui-sref-active="active" |
| 30 | ng-class="{'nav-container': route.children.length > 0}"> |
Matteo Scandolo | 25f6d1f | 2017-01-26 17:07:32 -0800 | [diff] [blame] | 31 | <a ng-if="route.state && !route.children" ui-sref="{{route.state}}({{route.params}})" ng-click="vm.activateRoute(route)"> |
Matteo Scandolo | 266907e | 2016-12-20 13:41:42 -0800 | [diff] [blame] | 32 | {{route.label}} |
| 33 | </a> |
| 34 | <a ng-if="route.state && route.children" ng-click="vm.activateRoute(route)"> |
| 35 | {{route.label}}<span class="sub-nav-icon"> <i class="stroke-arrow"></i> </span> |
| 36 | </a> |
| 37 | <ul class="nav nav-second" uib-collapse="vm.isSelected(route.state, vm.navSelected)"> |
| 38 | <li ng-repeat="childRoute in route.children | orderBy:'label'" ui-sref-active="active"> |
Matteo Scandolo | 25f6d1f | 2017-01-26 17:07:32 -0800 | [diff] [blame] | 39 | <a ui-sref="{{childRoute.state}}({{childRoute.params}})"> {{childRoute.label}}</a> |
Matteo Scandolo | 266907e | 2016-12-20 13:41:42 -0800 | [diff] [blame] | 40 | </li> |
| 41 | </ul> |
| 42 | </li> |
| 43 | <li class="nav-info"> |
Matteo Scandolo | a8a6fbb | 2016-12-21 16:59:08 -0800 | [diff] [blame] | 44 | <div class="row"> |
| 45 | <div class="col-sm-4"> |
| 46 | <i class="pe pe-7s-shield text-accent"></i> |
| 47 | </div> |
| 48 | <div class="col-sm-8"> |
| 49 | <h4 class="c-white">{{vm.appName}}</h4> |
| 50 | </div> |
| 51 | </div> |
| 52 | <div class="row"> |
| 53 | <div class="col-xs-12"> |
| 54 | <span class="c-white">{{vm.payoff}}</span> |
| 55 | </div> |
| 56 | </div> |
| 57 | <div class="row"> |
| 58 | <div class="col-sm-4"> |
| 59 | <i class="pe pe-7s-lock text-accent"></i> |
| 60 | </div> |
| 61 | <div class="col-sm-8"> |
| 62 | <a ng-click="vm.logout()" class="btn btn-accent btn-block btn-logout">Logout</a> |
| 63 | </div> |
Matteo Scandolo | 266907e | 2016-12-20 13:41:42 -0800 | [diff] [blame] | 64 | </div> |
Matteo Scandolo | 1315045 | 2017-01-23 13:15:54 -0800 | [diff] [blame] | 65 | <!--<a ng-click="vm.togglePanel()" class="btn btn-success">Open XSP</a>--> |
| 66 | <!--<a ng-click="vm.addToDashboard()" class="btn btn-success">Add to home</a>--> |
Matteo Scandolo | 266907e | 2016-12-20 13:41:42 -0800 | [diff] [blame] | 67 | </li> |
| 68 | </ul> |
| 69 | </nav> |
| 70 | <!-- End navigation--> |
| 71 | </aside> |