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.</h2>
6    <h2>{{qc.validated.otherError()}}</h2><br>
7    </div>
8    <div ng-if="qc.validated.otherNodes().length" class="cbui-error-message">
9      <div ng-if="qc.validated.otherStatus() == 404">
10      The query interface is only available on Couchbase nodes running the query service. <br>
11      You may access the interface here:<br><br>
12       </div>
13       <div ng-if="qc.validated.otherStatus() != 404">
14      There seems to be an error with the query service on this node.<br>
15      The query service is supposed to be running on the following nodes:<br><br>
16      </div>
17      <ul>
18        <li class="cbui-nodelist"
19          ng-repeat="url in qc.validated.otherNodes()"><a
20          href="{{url}}">{{url}}</a></li>
21      </ul>
22    </div>
23    <div ng-if="qc.validated.otherNodes().length == 0" class="cbui-error-message">
24      No query nodes were found on this cluster, so N1QL querying is not possible.
25    </div>
26  </div>
27  <mn-element-cargo depot="subnav">
28    <nav ng-if="qc.validated.valid()" class="sub-nav">
29      <a ui-sref="app.admin.query.workbench" ui-sref-active="selected">
30        Query Workbench</a>
31      <a ui-sref="app.admin.query.monitoring" ng-if="qc.isEnterprise && qc.validated.monitoringAllowed()"
32       ng-class="{selected: ('app.admin.query.monitoring' | includedByState)}">
33        Query Monitor</a>
34        <!-- 
35      <a ui-sref="app.admin.query.doc_editor" ui-sref-active="selected">
36        Document Editor</a> -->
37    </nav>
38  </mn-element-cargo>
39
40  <div ui-view=""></div>
41</div>
42