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-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 <p>The query interface is only available on Couchbase nodes running the query service.</p> 22 <div ng-if="qc.validNodes.length"> 23 <span ng-if="qc.validated.otherStatus() == 404"> 24 <p>The query service was found on the following nodes:</p> 25 </span> 26 <span ng-if="qc.validated.otherStatus() != 404"> 27 <p class="error">Received error {{qc.validated.otherStatus()}} when contacting the 28 query service on this node. You can try refreshing the browser, or connecting to another node 29 (if available).</p> 30 <p>The query service should be found on the following nodes:</p> 31 </span> 32 <div class="indent-1" ng-repeat="url in qc.validNodes"> 33 <a href="{{url}}">{{url}}</a> 34 </div> 35 <div class="row flex-left margin-top-1"> 36 <p class="text-small fix-width-7"> 37 <span class="icon fa-warning orange-3"></span> 38 Note that the above links are provided as a convenience. They may not work 39 if you are accessing the Web Console via a web proxy or if Couchbase Server 40 has been deployed in a split horizon DNS environment, with public and 41 private hostnames and IPs. In the event the links don't work, log directly into the node. 42 </p> 43 </div> 44 </div> 45 <div ng-if="qc.validNodes.length == 0"> 46 <p class="error">No query nodes were found on this cluster.</p> 47 </div> 48 </div> 49 50 <div ui-view=""></div> 51</div> 52