<!--
  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.
-->
<ul class="nav nav-tabs">
    <li class="nav-item" ui-sref-active="active">
        <a class="nav-link" ui-sref="main.inspect.summary">Summary</a>
    </li>
    <li class="nav-item" ui-sref-active="active">
        <a class="nav-link" ui-sref="main.inspect.sensors">Sensors</a>
    </li>
    <li class="nav-item" ui-sref-active="active">
        <a class="nav-link" ui-sref="main.inspect.effectors">Effectors</a>
    </li>
    <li class="nav-item" ui-sref-active="active">
        <a class="nav-link" ui-sref="main.inspect.management">Management</a>
    </li>
    <li class="nav-item" ui-sref-active="active">
        <a class="nav-link" ui-sref="main.inspect.activities">Activities</a>
    </li>
    <li class="nav-item pull-right entity-advanced-menu" uib-dropdown is-open="status.isopen">
        <a class="nav-link" uib-dropdown-toggle>
            <i class="fa fa-ellipsis-v" aria-hidden="true" ></i>
        </a>
        <ul uib-dropdown-menu class="entity-advanced-dropdown dropdown-menu dropdown-menu-right" role="menu" aria-labelledby="single-button">
            <li role="menuitem">
                <a ng-click="vm.addChildToEntity()">Add Child</a>
            </li>
            <li class="divider"></li>
            <li role="menuitem">
                <a ng-click="vm.resetEntityProblems()">Reset Problems</a>
            </li>
            <li class="divider"></li>
            <li role="menuitem">
                <a class="menuitem-danger" ng-click="vm.expungeEntity()">Expunge</a>
            </li>
            <li role="menuitem">
                <a class="menuitem-danger" ng-click="vm.expungeEntity(false)">Unmanage</a>
            </li>
        </ul>
    </li>
</ul>

<div class="tab-content">
    <div class="tab-pane active" ng-class="{'not-found': vm.entityNotFound}">
        <ui-view></ui-view>
    </div>
</div>