1<div ng-controller="qwQueryController as qc">
2
3  <mn-element-cargo depot="subnav">
4    <nav ng-if="qc.validated.valid() && qc.isEnterprise()" 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-top-1" 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-top-half">
21    <div ng-if="qc.validNodes.length">
22      <span>
23        <p class="error">Received error {{qc.validated.otherStatus()}} when contacting the
24        query service. Try refreshing the browser, as errors may occur if the query service is still warming up 
25        or suffering a transient error.</p>
26      </span>
27    </div>
28    <div ng-if="qc.validNodes.length == 0">
29      <p class="error">The query interface is only available on Couchbase clusters running the query service. 
30      No query nodes were found on this cluster.</p>
31    </div>
32  </div>
33
34  <div ui-view=""></div>
35</div>
36