1<div ng-controller="qwQueryController as qc">
2
3  <mn-element-cargo depot="subnav">
4    <nav ng-if="qc.validated.valid()" class="sub-nav">
5      <a ui-sref="app.admin.query.workbench" ui-sref-active="selected">
6        Query Workbench</a>
7      <a ui-sref="app.admin.query.monitoring" ng-if="qc.isEnterprise && qc.validated.monitoringAllowed()"
8       ng-class="{selected: ('app.admin.query.monitoring' | includedByState)}">
9        Query Monitor</a>
10        <!--
11      <a ui-sref="app.admin.query.doc_editor" ui-sref-active="selected">
12        Document Editor</a> -->
13    </nav>
14  </mn-element-cargo>
15
16  <div class="margin-top1" ng-if="qc.validated.inProgress() && !qc.validated.valid()">
17    <p>Contacting query node...</p>
18  </div>
19
20  <div ng-if="!qc.validated.inProgress() && !qc.validated.valid()" class="margin-top1">
21    <p>The query interface is only available on Couchbase nodes running the query service.</p>
22
23    <div ng-if="qc.validated.otherNodes().length">
24      <span ng-if="qc.validated.otherStatus() == 404">
25        <p>The query service was found on the following nodes:</p>
26      </span>
27      <span ng-if="qc.validated.otherStatus() != 404">
28        <p class="error">There seems to be an error with the query service on this node.</p>
29        <p>The query service should be found on the following nodes:</p>
30      </span>
31      <ul class="nobullet">
32        <li ng-repeat="url in qc.validated.otherNodes()">
33          <a href="{{url}}">{{url}}</a>
34        </li>
35      </ul>
36    </div>
37    <div ng-if="qc.validated.otherNodes().length == 0">
38      <p class="error">No query nodes were found on this cluster.</p>
39    </div>
40  </div>
41
42  <div ui-view=""></div>
43</div>
44