xref: /5.5.2/cbas-ui/cbas-ui/cbas_toplevel.html (revision b2b64408)
1<div ng-controller="cwCbasController 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.cbas.workbench" ui-sref-active="selected">
6        Analytics Workbench</a>
7    </nav>
8  </mn-element-cargo>
9
10  <div class="margin-top1" ng-if="qc.validated.inProgress() && !qc.validated.valid()">
11    <p>Contacting analytics node...</p>
12  </div>
13
14  <div ng-if="!qc.validated.inProgress() && !qc.validated.valid()" class="margin-top1">
15    <p>The analytics interface is only available on Couchbase nodes running the analytics service.</p>
16
17    <div ng-if="qc.validNodes.length">
18      <span ng-if="qc.validated.otherStatus() == 404">
19        <p>The analytics service was found on the following nodes:</p>
20      </span>
21      <span ng-if="qc.validated.otherStatus() != 404">
22        <p class="error">Received error {{qc.validated.otherStatus()}} when contacting the 
23        analytics service on this node. You can try refreshing the browser, or connecting to another node
24        (if available).</p>
25        <p>The analytics service should be found on the following nodes:</p>
26      </span>
27      <ul class="nobullet">
28        <li ng-repeat="url in qc.validNodes">
29          <a href="{{url}}" data-ng-click="qc.forceReload(url)">{{url}}</a>
30        </li>
31      </ul>
32    </div>
33    <div ng-if="qc.validNodes.length == 0">
34      <p class="error">No analytics nodes were found on this cluster.</p>
35    </div>
36  </div>
37
38  <div ui-view=""></div>
39</div>
40