| //- |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You 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. |
| |
| nav |
| li( |
| ng-repeat='item in $ctrl.menu$|async:this track by item.sref' |
| ng-if='!item.hidden' |
| ) |
| a.web-console-sidebar-navigation__link( |
| ui-sref='{{item.sref}}' |
| ui-sref-active=`{ |
| "web-console-sidebar-navigation__link-active": item.activeSref |
| }` |
| title='{{item.label|translate}}' |
| ng-class=`{ |
| 'web-console-sidebar-navigation__link-narrow': !$ctrl.opened, |
| 'web-console-sidebar-navigation__link-wide': $ctrl.opened |
| }` |
| tabindex='0' |
| ) |
| svg.web-console-sidebar-navigation__link-icon(ignite-icon='{{item.icon}}') |
| span.web-console-sidebar-navigation__link-content(translate='{{item.label}}') |