1<div ng-controller="qwQueryController as qc">
2  <h3 ng-if="qc.validated.inProgress()">Contacting Query Node</h3>
3  <div ng-if="!qc.validated.inProgress() && !qc.validated.valid()">
4    <div ng-if="qc.validated.otherStatus()">
5    <h2>Unable to access query panel: {{qc.validated.otherStatus()}}</h2>
6    <h2>{{qc.validated.otherError()}}</h2>
7    </div>
8    <div ng-if="qc.validated.otherNodes().length" class="cbui-error-message">
9      The query interface is only available on Couchbase nodes
10        running the query service. <br>
11      You may access the interface here:<br><br>
12      <ul>
13        <li class="cbui-nodelist"
14          ng-repeat="url in qc.validated.otherNodes()"><a
15          href="{{url}}">{{url}}</a></li>
16      </ul>
17    </div>
18    <div ng-if="qc.validated.otherNodes().length == 0" class="cbui-error-message">
19      No query nodes were found on this cluster, so N1QL querying is not possible.
20    </div>
21  </div>
22  <mn-element-cargo depot="subnav">
23    <nav ng-if="qc.validated.valid()" class="sub-nav">
24      <a ui-sref="app.admin.query.workbench" ui-sref-active="selected">
25        Query Workbench</a>
26      <a ui-sref="app.admin.query.monitoring" ng-if="qc.isEnterprise"
27       ng-class="{selected: ('app.admin.query.monitoring' | includedByState)}">
28        Query Monitor</a>
29        <!-- 
30      <a ui-sref="app.admin.query.doc_editor" ui-sref-active="selected">
31        Document Editor</a> -->
32    </nav>
33  </mn-element-cargo>
34
35  <div ui-view=""></div>
36</div>
37