mirror of
https://github.com/valitydev/wazuh-kibana-app.git
synced 2024-11-07 02:15:24 +00:00
80 lines
5.1 KiB
Plaintext
80 lines
5.1 KiB
Plaintext
<div flex="auto" layout="column" ng-cloak ng-controller="managementController as mctrl">
|
|
|
|
<!-- Top navbar section -->
|
|
<wz-menu ng-init="menuNavItem = 'manager'"></wz-menu>
|
|
<!-- End top navbar section -->
|
|
|
|
<!-- Navigation section -->
|
|
<div layout="row" layout-align="start center" ng-if="mctrl.tab !== 'monitoring' && mctrl.tab !== 'configuration'">
|
|
<!-- Breadcrumbs -->
|
|
<div layout="row" layout-padding>
|
|
<!-- If you're not on the Welcome tab, show a functional breadcrumb -->
|
|
<div
|
|
ng-if="mctrl.tab !== 'welcome' && !mctrl.currentGroup && !mctrl.currentRule && !mctrl.currentDecoder && !mctrl.currentList">
|
|
<span class="wz-text-link cursor-pointer" ng-click="mctrl.switchTab('welcome', true)">Management</span>
|
|
<span> / {{ mctrl.tabNames[mctrl.tab] }}</span>
|
|
</div>
|
|
<div
|
|
ng-if="mctrl.tab !== 'welcome' && !mctrl.currentGroup && (mctrl.currentRule || mctrl.currentDecoder || mctrl.currentList)">
|
|
<span class="wz-text-link cursor-pointer" ng-click="mctrl.switchTab('welcome', true)">Management</span>
|
|
<span class="wz-text-link cursor-pointer" ng-click="mctrl.breadCrumbBack(true);"> /
|
|
{{ mctrl.tabNames[mctrl.tab] }}</span>
|
|
<span ng-show="mctrl.currentRule"><span class="wz-text-link cursor-pointer"
|
|
ng-click="mctrl.breadCrumbBack()"> / rules</span> / {{mctrl.currentRule.id}}</span>
|
|
<span ng-show="mctrl.currentDecoder"><span class="wz-text-link cursor-pointer"
|
|
ng-click="mctrl.breadCrumbBack()"> / decoders</span> / {{mctrl.currentDecoder.name}}</span>
|
|
<span ng-show="mctrl.currentList"><span class="wz-text-link cursor-pointer"
|
|
ng-click="mctrl.breadCrumbBack()"> / lists</span> / {{mctrl.currentList.name}}</span>
|
|
</div>
|
|
<div ng-if="mctrl.tab === 'groups' && mctrl.currentGroup && mctrl.currentGroup.name">
|
|
<span class="wz-text-link cursor-pointer" ng-click="mctrl.switchTab('welcome', true)">Management</span>
|
|
<span class="wz-text-link cursor-pointer" ng-click="mctrl.switchTab('groups', true)"> /
|
|
{{ mctrl.tabNames[mctrl.tab] }}</span>
|
|
<span> / {{ mctrl.currentGroup.name }} </span>
|
|
</div>
|
|
</div>
|
|
<!-- End breadcrumbs -->
|
|
</div>
|
|
<div layout="row" layout-align="start center" ng-if="mctrl.tab !== 'monitoring' && mctrl.tab === 'configuration'">
|
|
<div layout-padding class="euiFlexGroup">
|
|
|
|
<div layout="row" ng-if="!mctrl.currentConfiguration && mctrl.editionTab !== 'editconfiguration'"
|
|
class="euiFlexItem">
|
|
<span class="wz-text-link cursor-pointer euiBreadcrumb"
|
|
ng-click="mctrl.switchTab('welcome', true)">Management</span>
|
|
<span class="euiBreadcrumb"> / </span>
|
|
<span>{{ mctrl.tabNames[mctrl.tab] }}</span>
|
|
</div>
|
|
|
|
<div layout="row" ng-if="mctrl.currentConfiguration || mctrl.editionTab === 'editconfiguration'"
|
|
class="euiFlexItem">
|
|
<span class="wz-text-link cursor-pointer euiBreadcrumb"
|
|
ng-click="mctrl.switchTab('welcome', true)">Management</span>
|
|
<span class="euiBreadcrumb"> / </span>
|
|
<span class="wz-text-link cursor-pointer euiBreadcrumb"
|
|
ng-click="mctrl.switchTab('configuration', true)">{{ mctrl.tabNames[mctrl.tab] }}</span>
|
|
<span ng-if="mctrl.editionTab !== 'editconfiguration'"> /
|
|
{{ mctrl.tabNames[mctrl.currentConfiguration] || mctrl.currentConfiguration }} </span>
|
|
</div>
|
|
|
|
<div ng-if="mctrl.editionTab !== 'editconfiguration' && mctrl.clusterInfo.status === 'enabled'"
|
|
class="height-35 layout-align-center-stretch layout-column wz-margin-right-8 wz-select-input">
|
|
<select class="kuiSelect wz-border-none cursor-pointer" ng-model="mctrl.selectedNode"
|
|
ng-change="mctrl.changeNode(mctrl.selectedNode)">
|
|
<option ng-repeat="node in mctrl.nodeList" value="{{node}}">{{node}}</option>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<md-nav-bar ng-if="!mctrl.load && mctrl.inArray(mctrl.tab, mctrl.statusReportsTabs) && mctrl.tab !== 'monitoring'"
|
|
class="wz-nav-bar" ng-show="mctrl.tab !== 'welcome'" md-selected-nav-item="mctrl.tab"
|
|
nav-bar-aria-label="Status and reports navigation links">
|
|
<md-nav-item class="wz-nav-item" md-nav-click="mctrl.switchTab('status', true)" name="status">Status
|
|
</md-nav-item>
|
|
<md-nav-item class="wz-nav-item" md-nav-click="mctrl.switchTab('logs', true)" name="logs">Logs</md-nav-item>
|
|
<md-nav-item class="wz-nav-item" md-nav-click="mctrl.switchTab('monitoring', true)" name="monitoring">Cluster
|
|
</md-nav-item>
|
|
<md-nav-item class="wz-nav-item" md-nav-click="mctrl.switchTab('reporting', true)" name="reporting">Reporting
|
|
</md-nav-item>
|
|
</md-nav-bar> |