# All files / src/app/ceph/cluster/crushmap crushmap.component.html

100% Statements 1/1
100% Branches 0/0
100% Functions 0/0
100% Lines 1/1

Press n or j to go to the next uncovered block, b, p or k for the previous block.

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    296x

     <div class="row">
      <div class="col-sm-12 col-lg-12">
        <div class="panel panel-default">
          <div class="panel-heading">
            <h3 class="panel-title">
              <span i18n>CRUSH map viewer</span>
            </h3>
          </div>
          <div class="panel-body">
            <div class="col-sm-6 col-lg-6">
              <tree [tree]="tree"
                    (nodeSelected)="onNodeSelected($event)">
                <ng-template let-node>
                  <span class="label"
                        [ngClass]="{'label-success': ['in', 'up'].includes(node.status), 'label-danger': ['down', 'out'].includes(node.status)}">{{ node.status }}</span>
                  <span>&nbsp;</span>
                  <span class="node-name" [innerHTML]="node.value"></span>
                </ng-template>
              </tree>
            </div>
            <div class="col-sm-6 col-lg-6 metadata" *ngIf="metadata">
              <legend>{{ metadataTitle }}</legend>
              <cd-table-key-value [data]="metadata"></cd-table-key-value>
            </div>
          </div>
        </div>
      </div>
    </div>