wazuh-kibana-app/public/templates/overview.head
2016-09-20 12:09:50 -07:00

56 lines
4.0 KiB
Plaintext

<div flex ng-controller="stateLocationController" layout="column">
<md-content ng-init="menuNavItem = 'overview'" style="height: 70px;">
<md-nav-bar class="wazuhMenuNav" md-selected-nav-item="menuNavItem" nav-bar-aria-label="navigation menu">
<md-nav-item id="header_logo" md-nav-href="#/" name="logo" aria-hidden="true">
<img aria-hidden="true" src="/plugins/wazuh/img/logo_white.png" height="44" weight="252"></img>
</md-nav-item>
<md-nav-item md-nav-href="#/overview" name="overview">Overview</md-nav-item>
<md-nav-item md-nav-href="#/manager" name="manager">Manager</md-nav-item>
<md-nav-item md-nav-href="#/agents" name="agents">Agents</md-nav-item>
<md-nav-item md-nav-href="#/discover" name="discover">Discover</md-nav-item>
<md-nav-item md-nav-href="#/dashboards" name="dashboards">Dashboards</md-nav-item>
<md-nav-item md-nav-href="#/settings" name="settings">Settings</md-nav-item>
</md-nav-bar>
</md-content>
<div layout="row">
<md-content flex id="content">
<md-content layout="row" layout-align="center start" layout-padding ng-init="submenuNavItem = (state.getOverviewState() ? state.getOverviewState() : 'general')" style="max-height: 64px;">
<md-nav-bar flex="60" style="padding-right: 0px;" md-selected-nav-item="submenuNavItem" nav-bar-aria-label="navigation submenu">
<md-nav-item md-nav-click="submenuNavItem = 'general'" name="general">General</md-nav-item>
<md-nav-item md-nav-click="submenuNavItem = 'fim'" name="fim">File integrity</md-nav-item>
<md-nav-item md-nav-click="submenuNavItem = 'pm'" name="pm">Policy monitoring</md-nav-item>
</md-nav-bar>
<md-content style="margin-top: -6px" flex="60" class="subNavLine" layout="row" layout-align="end start">
<md-button ng-show="!show_timer" ng-click="show_timer = !show_timer" class="md-primary" md-colors="::{background: 'primary-100', color: 'background-900'}" target="_blank">
<i class="fa fa-clock-o" aria-hidden="true"></i> {{ (!timeFilter) ? '24h' : timeFilter}}
</md-button>
<md-content ng-show="show_timer" layout="row" layout-align="end start">
<md-button ng-click="show_timer = !show_timer; timeFilter='24h';" class="md-primary" md-colors="::{background: 'primary-100', color: 'background-900'}" target="_blank">
<i class="fa fa-clock-o" aria-hidden="true"></i> Last 24 hours
</md-button>
<md-button ng-click="show_timer = !show_timer;timeFilter='7d';" class="md-primary" md-colors="::{background: 'primary-100', color: 'background-900'}" target="_blank">
<i class="fa fa-clock-o" aria-hidden="true"></i> Last week
</md-button>
<md-button ng-click="show_timer = !show_timer;timeFilter='30d';" class="md-primary" md-colors="::{background: 'primary-100', color: 'background-900'}" target="_blank">
<i class="fa fa-clock-o" aria-hidden="true"></i> Last month
</md-button>
</md-content>
<md-button ng-if="submenuNavItem == 'general'" class="md-primary" md-colors="::{background: 'primary-100', color: 'background-900'}" ng-href="{{getDiscoverAll()}}">
<i class="fa fa-external-link" aria-hidden="true"></i> Alerts</md-button>
<md-button ng-if="submenuNavItem == 'fim'" class="md-primary" md-colors="::{background: 'primary-100', color: 'background-900'}" ng-href="{{getDiscoverFIM()}}"><i class="fa fa-external-link" aria-hidden="true"></i> Alerts</md-button>
<md-button class="md-primary" md-colors="::{background: 'primary-100', color: 'background-900'}" ng-if="submenuNavItem == 'general'" ng-click="openDashboard('ossecalerts','*')">
<i class="fa fa-external-link" aria-hidden="true"></i> Dashboard
</md-button>
<md-button class="md-primary" md-colors="::{background: 'primary-100', color: 'background-900'}" ng-if="submenuNavItem == 'fim'" ng-click="openDashboard('fim','*')">
<i class="fa fa-external-link" aria-hidden="true"></i> Dashboard
</md-button>
</md-content>
</md-content>
</md-content>
</div>
<md-progress-linear class="md-accent" md-mode="indeterminate" ng-show="load"></md-progress-linear>