# All files / src/app/ceph/block/iscsi-target-details iscsi-target-details.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
    29
    30
    31
    32
    33
    34
    35
    364x

     <div class="col-sm-6 col-lg-6">
      <legend i18n>iSCSI Topology</legend>
      <tree [tree]="tree"
            (nodeSelected)="onNodeSelected($event)">
        <ng-template let-node>
          <span class="node-name"
                [innerHTML]="node.value"></span>
          <span>&nbsp;</span>

          <span class="label"
                [ngClass]="{'label-success': ['in', 'up'].includes(node.status), 'label-danger': ['down', 'out'].includes(node.status)}">
            {{ node.status }}
          </span>
        </ng-template>
      </tree>
    </div>

    <div class="col-sm-6 col-lg-6 metadata"
         *ngIf="data">
      <legend>{{ title }}</legend>

      <cd-table #detailTable
                [data]="data"
                columnMode="flex"
                [columns]="columns"
                [limit]="0">
      </cd-table>
    </div>

    <ng-template #highlightTpl
                 let-row="row"
                 let-value="value">
      <span *ngIf="row.default === undefined || row.default === row.current">{{ value }}</span>
      <strong *ngIf="row.default !== undefined && row.default !== row.current">{{ value }}</strong>
    </ng-template>