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  <!-- <ul ng-if="qc.validated.valid()" class="second-level-nav">
23    <li><a ui-sref="app.admin.query.workbench"
24      ui-sref-active="selected">Workbench</a></li>
25    <li>
26      <a
27        ui-sref="app.admin.query.monitoring"
28        ng-class="{selected: ('app.admin.query.monitoring' | includedByState)}">Monitoring</a>
29    </li>
30  </ul> -->
31  <div ng-if="qc.validated.valid()" class="interim row flex-left sub-nav">
32      <span class="pills">
33        <a
34          ui-sref="app.admin.query.workbench"
35          ui-sref-active="pills-selected">
36          Query Workbench</a>
37      </span>
38      <span class="pills">
39        <a
40          ui-sref="app.admin.query.monitoring"
41          ui-sref-active="pills-selected"
42          ng-class="{selected: ('app.admin.query.monitoring' | includedByState)}">Query Monitor</a>
43      </span>
44  </div>
45  <div ui-view=""></div>
46</div>
47