blob: 53de85226528302de8fbe915c9ab49aa24caeb11 [file] [log] [blame]
Matteo Scandolo500e4c42017-08-08 13:05:24 -07001
2<!--
3Copyright 2017-present Open Networking Foundation
4
5Licensed under the Apache License, Version 2.0 (the "License");
6you may not use this file except in compliance with the License.
7You may obtain a copy of the License at
8
9http://www.apache.org/licenses/LICENSE-2.0
10
11Unless required by applicable law or agreed to in writing, software
12distributed under the License is distributed on an "AS IS" BASIS,
13WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14See the License for the specific language governing permissions and
15limitations under the License.
16-->
17
18
Matteo Scandolo266907e2016-12-20 13:41:42 -080019<!-- 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 Scandolo00d97892016-12-23 17:53:12 -080029 ui-sref-active="active"
30 ng-class="{'nav-container': route.children.length > 0}">
Matteo Scandolo25f6d1f2017-01-26 17:07:32 -080031 <a ng-if="route.state && !route.children" ui-sref="{{route.state}}({{route.params}})" ng-click="vm.activateRoute(route)">
Matteo Scandolo266907e2016-12-20 13:41:42 -080032 {{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 Scandolo25f6d1f2017-01-26 17:07:32 -080039 <a ui-sref="{{childRoute.state}}({{childRoute.params}})"> {{childRoute.label}}</a>
Matteo Scandolo266907e2016-12-20 13:41:42 -080040 </li>
41 </ul>
42 </li>
43 <li class="nav-info">
Matteo Scandoloa8a6fbb2016-12-21 16:59:08 -080044 <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 Scandolo266907e2016-12-20 13:41:42 -080064 </div>
Matteo Scandolo13150452017-01-23 13:15:54 -080065 <!--<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 Scandolo266907e2016-12-20 13:41:42 -080067 </li>
68 </ul>
69 </nav>
70 <!-- End navigation-->
71</aside>