blob: 5caa1bfe0c2ee438bfcd26f0f29ed2e10deff44c [file] [log] [blame]
<!--
Copyright 2017-present Open Networking Foundation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!-- Navigation -->
<aside class="navigation">
<!-- Navigation-->
<nav>
<ul class="nav luna-nav">
<!--<li class="nav-category">-->
<!--Main-->
<!--</li>-->
<li
ng-repeat="route in vm.routes track by $index"
ui-sref-active="active"
ng-class="{'nav-container': route.children.length > 0}">
<a ng-if="route.state && !route.children" ui-sref="{{route.state}}({{route.params}})" ng-click="vm.activateRoute(route)">
{{route.label}}
</a>
<a ng-if="route.state && route.children" ng-click="vm.activateRoute(route)">
{{route.label}}<span class="sub-nav-icon"> <i class="stroke-arrow"></i> </span>
</a>
<ul class="nav nav-second" uib-collapse="vm.isSelected(route.state, vm.navSelected)">
<li ng-repeat="childRoute in route.children | orderBy:'label'" ui-sref-active="active">
<a ui-sref="{{childRoute.state}}({{childRoute.params}})"> {{childRoute.label}}</a>
</li>
</ul>
</li>
<li class="nav-info">
<div class="row">
<div class="col-sm-4">
<i class="pe pe-7s-shield text-accent"></i>
</div>
<div class="col-sm-8">
<h4 class="c-white">{{vm.appName}}</h4>
</div>
</div>
<div class="row">
<div class="col-xs-12">
<span class="c-white">{{vm.payoff}}</span>
</div>
</div>
<div class="row">
<div class="col-sm-4">
<i class="pe pe-7s-lock text-accent"></i>
</div>
<div class="col-sm-8">
<a ng-click="vm.logout()" class="btn btn-accent btn-block btn-logout">Logout</a>
</div>
</div>
</li>
</ul>
</nav>
<!-- End navigation-->
</aside>