wazuh-kibana-app/public/directives/wz-menu/wz-menu.html
Jesús Ángel González cb0057a617 More refactor
2018-03-07 13:29:31 +01:00

24 lines
3.0 KiB
HTML

<md-nav-bar class="wz-menu-nav" name="menuTopName" md-selected-nav-item="menuNavItem" nav-bar-aria-label="navigation menu">
<md-nav-item class="wz-menu-nav-logo" style="margin-top:-10px !important" id="header_logo" md-nav-click="goToClick('#/')" name="logo" aria-hidden="true">
<img aria-hidden="true" kbn-src="/plugins/wazuh/img/new_logo_white.png" height="37" weight="252"></img>
</md-nav-item>
<md-nav-item class="wz-color-white" ng-class="{'wz-nav-item-change-color': menuNavItem == 'overview' }" md-nav-click="goToClick('#/overview')" id="overview"><i class="fa fa-bar-chart"></i> Overview</md-nav-item>
<md-nav-item class="wz-color-white" ng-class="{'wz-nav-item-change-color': menuNavItem == 'manager' }" md-nav-click="goToClick('#/manager')" id="manager"><i class="fa fa-server"></i> Manager</md-nav-item>
<md-nav-item class="wz-color-white" ng-class="{'wz-nav-item-change-color': menuNavItem == 'agents' }" md-nav-click="goToClick('#/agents-preview')" id="agents"><i class="fa fa-tv"></i> Agents</md-nav-item>
<md-nav-item class="wz-color-white" ng-class="{'wz-nav-item-change-color': menuNavItem == 'discover' }" md-nav-click="goToClick('#/wazuh-discover')" id="discover"><i class="fa fa-compass"></i> Discover</md-nav-item>
<div class="wz-menu-nav-bar-api" layout="row" ng-show="theresAPI || theresPattern">
<div ng-show="theresAPI" layout layout-align="center center"><i class="fa fa-star fa-fw wz-menu-star" aria-hidden="true"></i>{{ currentAPI }}&nbsp;&ndash;&nbsp;<md-tooltip md-direction="bottom">Selected API</md-tooltip></div>
<div ng-show="!theresAPI" layout layout-align="center center"><i class="fa fa-star fa-fw wz-menu-star" aria-hidden="true"></i>No API &nbsp;&ndash;&nbsp;<md-tooltip md-direction="bottom">Selected API</md-tooltip></div>
<!-- <div ng-show="theresPattern" layout layout-align="center center">&nbsp;&ndash;&nbsp;{{ currentPattern }}<md-tooltip md-direction="bottom">Selected index-pattern</md-tooltip></div> -->
<div ng-show="theresPattern && patternList && patternList.length > 1" layout layout-align="center center">
<md-select ng-model="currentSelectedPattern" ng-change="changePattern(currentSelectedPattern)" placeholder="Index pattern" class="wz-menu-select md-no-underline wz-border-none" aria-label="Select index pattern">
<md-option ng-repeat="pattern in patternList" value="{{ pattern.id }}">{{ pattern.attributes.title }}</md-option>
</md-select>
<md-tooltip md-direction="bottom">Selected index pattern</md-tooltip>
</div>
<div ng-show="theresPattern && patternList && patternList.length === 1" layout layout-align="center center"> {{ patternList[0].attributes.title }} <md-tooltip md-direction="bottom">Selected index pattern</md-tooltip></div>
</div>
<md-nav-item class="wz-menu-nav-gear wz-color-white" md-nav-click="goToClick('#/settings')" id="settings" name="settings">
<i class="fa fa-cog ng-scope" aria-hidden="true"></i>
</md-nav-item>
</md-nav-bar>