<header class="row namespace-attribute-panel">
    <div class="row">
        <div class="col-md-6" style="padding-bottom:5px;">
            <span class="text-center namespace-attribute-public label label-primary no-radius">
                <span data-tooltip="tooltip" data-placement="bottom"
                      title="私有namespace({{namespace.baseInfo.namespaceName}})的配置只能被AppId为{{appId}}的客户端读取到"
                      ng-show="!namespace.isPublic">私有</span>

                    <span data-tooltip="tooltip" data-placement="top"
                          title="namespace({{namespace.baseInfo.namespaceName}})的配置能被任何客户端读取到"
                          ng-show="namespace.isPublic && namespace.parentAppId == namespace.baseInfo.appId">公共</span>

                    <span data-tooltip="tooltip" data-placement="top"
                          title="namespace({{namespace.baseInfo.namespaceName}})的配置将会覆盖公共namespace的配置, 且合并之后的配置只能被AppId为{{appId}}的客户端读取到"
                          ng-show="namespace.isPublic && namespace.isLinkedNamespace"
                          ng-click="goToParentAppConfigPage(namespace)">关联</span>
            </span>
            <span class="text-center namespace-attribute-public label label-info no-radius">
                <span ng-bind="namespace.format" style="width:30px;"></span>
            </span>
        </div>
        <div class="col-md-6 text-right" style="padding-right:23px;">
            <span data-toggle="collapse" data-target="#BODY{{namespace.branch.id}}" aria-expanded="false">
                <span class="label no-radius cursor-pointer"
                      data-toggle="collapse" data-target="#BODY{{namespace.id}}" aria-expanded="false"
                      ng-click="showNamespaceBody = !showNamespaceBody"
                      ng-show="namespace.initialized">
                    <a>[展开/收缩]</a>
                </span>
            </span>
        </div>
    </div>
</header>

<!--branch nav-->
<header class="panel-heading second-panel-heading" ng-show="namespace.initialized && namespace.hasBranch">
    <div class="row">
        <div class="col-md-8 pull-left">
            <ul class="nav nav-tabs">
                <li role="presentation">
                    <a ng-class="{'node_active': namespace.displayControl.currentOperateBranch == 'master'}"
                       ng-click="switchBranch('master', true)">
                        <img src="img/branch.png">
                        主版本
                    </a>
                </li>
                <li role="presentation">
                    <a ng-class="{'node_active': namespace.displayControl.currentOperateBranch != 'master'}"
                       ng-click="switchBranch(namespace.branchName, true)">
                        <img src="img/branch.png">
                        灰度版本
                    </a>
                </li>

            </ul>
        </div>
    </div>
</header>
