# All files / src/app/core/navigation/navigation navigation.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
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    2394x

     <nav class="navbar navbar-default navbar-main">
      <!-- Brand and toggle get grouped for better mobile display -->

      <div class="navbar-header tc_logo_component">
        <a class="navbar-brand"
           href="#">
          <img src="assets/Ceph_Logo_Standard_RGB_White_120411_fa.png"
               alt="Ceph">
        </a>

        <button type="button"
                class="navbar-toggle collapsed"
                (click)="isCollapsed = !isCollapsed">
          <span i18n
                class="sr-only">Toggle navigation</span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
        </button>
      </div>

      <!-- Collect the nav links, forms, and other content for toggling -->
      <div *ngIf="enabledFeature$ | async as enabledFeature"
           class="collapse navbar-collapse"
           id="bs-example-navbar-collapse-1"
           [collapse]="isCollapsed">
        <ul class="nav navbar-nav navbar-primary">

          <!-- Dashboard -->
          <li routerLinkActive="active"
              class="tc_menuitem tc_menuitem_dashboard">
            <a routerLink="/dashboard">
              <i class="fa fa-heartbeat fa-fw"
                 [ngStyle]="summaryData?.health_status | healthColor"></i>
              <span i18n>Dashboard</span>
            </a>
          </li>

          <!-- Cluster -->
          <li dropdown
              routerLinkActive="active"
              class="dropdown tc_menuitem tc_menuitem_cluster"
              *ngIf="permissions.hosts.read || permissions.monitor.read || permissions.osd.read || permissions.configOpt.read">
            <a dropdownToggle
               class="dropdown-toggle"
               data-toggle="dropdown">
              <ng-container i18n>Cluster</ng-container>
              <span class="caret"></span>
            </a>
            <ul *dropdownMenu
                class="dropdown-menu">
              <li routerLinkActive="active"
                  class="tc_submenuitem tc_submenuitem_hosts"
                  *ngIf="permissions.hosts.read">
                <a i18n
                   class="dropdown-item"
                   routerLink="/hosts">Hosts</a>
              </li>
              <li routerLinkActive="active"
                  class="tc_submenuitem tc_submenuitem_cluster_monitor"
                  *ngIf="permissions.monitor.read">
                <a i18n
                   class="dropdown-item"
                   routerLink="/monitor/">Monitors</a>
              </li>
              <li routerLinkActive="active"
                  class="tc_submenuitem tc_submenuitem_hosts"
                  *ngIf="permissions.osd.read">
                <a i18n
                   class="dropdown-item"
                   routerLink="/osd">OSDs</a>
              </li>
              <li routerLinkActive="active"
                  class="tc_submenuitem tc_submenuitem_configuration"
                  *ngIf="permissions.configOpt.read">
                <a i18n
                   class="dropdown-item"
                   routerLink="/configuration">Configuration</a>
              </li>
              <li routerLinkActive="active"
                  class="tc_submenuitem tc_submenuitem_crush"
                  *ngIf="permissions.hosts.read && permissions.osd.read">
                <a i18n
                   class="dropdown-item"
                   routerLink="/crush-map">CRUSH map</a>
              </li>
              <li routerLinkActive="active"
                  class="tc_submenuitem tc_submenuitem_modules"
                  *ngIf="permissions.configOpt.read">
                <a i18n
                   class="dropdown-item"
                   routerLink="/mgr-modules">Manager modules</a>
              </li>
              <li routerLinkActive="active"
                  class="tc_submenuitem tc_submenuitem_log"
                  *ngIf="permissions.log.read">
                <a i18n
                   class="dropdown-item"
                   routerLink="/logs">Logs</a>
              </li>
              <li routerLinkActive="active"
                  class="tc_submenuitem tc_submenuitem_prometheus"
                  *ngIf="prometheusConfigured && permissions.prometheus.read">
                <a i18n
                   routerLink="/alerts">Alerts</a>
              </li>
            </ul>
          </li>

          <!-- Pools -->
          <li routerLinkActive="active"
              class="tc_menuitem tc_menuitem_pool"
              *ngIf="permissions.pool.read">
            <a i18n
               routerLink="/pool">Pools</a>
          </li>

          <!-- Block -->
          <li dropdown
              routerLinkActive="active"
              class="dropdown tc_menuitem tc_menuitem_block"
              *ngIf="
              (enabledFeature.rbd || enabledFeature.mirroring || enabledFeature.iscsi) &&
              (permissions.rbdImage.read || permissions.rbdMirroring.read || permissions.iscsi.read)">
            <a dropdownToggle
               class="dropdown-toggle"
               data-toggle="dropdown"
               [ngStyle]="blockHealthColor()">
              <ng-container i18n>Block</ng-container>
              <span class="caret"></span>
            </a>

            <ul class="dropdown-menu">
              <li routerLinkActive="active"
                  *ngIf="enabledFeature.rbd && permissions.rbdImage.read">
                <a i18n
                   class="dropdown-item"
                   routerLink="/block/rbd">Images</a>
              </li>

              <li routerLinkActive="active"
                  class="tc_submenuitem tc_submenuitem_block_mirroring"
                  *ngIf="enabledFeature.mirroring && permissions.rbdMirroring.read">
                <a class="dropdown-item"
                   routerLink="/block/mirroring">
                  <ng-container i18n>Mirroring</ng-container>
                  <small *ngIf="summaryData?.rbd_mirroring?.warnings !== 0"
                         class="label label-warning">{{ summaryData?.rbd_mirroring?.warnings }}</small>
                  <small *ngIf="summaryData?.rbd_mirroring?.errors !== 0"
                         class="label label-danger">{{ summaryData?.rbd_mirroring?.errors }}</small>
                </a>
              </li>

              <li routerLinkActive="active"
                  *ngIf="enabledFeature.iscsi && permissions.iscsi.read">
                <a i18n
                   class="dropdown-item"
                   routerLink="/block/iscsi">iSCSI</a>
              </li>
            </ul>
          </li>

          <!-- NFS -->
          <li routerLinkActive="active"
              class="tc_menuitem tc_menuitem_nfs"
              *ngIf="permissions?.nfs?.read">
            <a i18n
               routerLink="/nfs">NFS</a>
          </li>

          <!-- Filesystem -->
          <li routerLinkActive="active"
              class="tc_menuitem tc_menuitem_cephs"
              *ngIf="enabledFeature.cephfs && permissions.cephfs.read">
            <a i18n
               routerLink="/cephfs">Filesystems</a>
          </li>

          <!-- Object Gateway -->
          <li dropdown
              routerLinkActive="active"
              class="dropdown tc_menuitem tc_menuitem_rgw"
              *ngIf="enabledFeature.rgw && permissions.rgw.read">
            <a dropdownToggle
               class="dropdown-toggle"
               data-toggle="dropdown">
              <ng-container i18n>Object Gateway</ng-container>
              <span class="caret"></span>
            </a>
            <ul *dropdownMenu
                class="dropdown-menu">
              <li routerLinkActive="active"
                  class="tc_submenuitem tc_submenuitem_rgw_daemons">
                <a i18n
                   class="dropdown-item"
                   routerLink="/rgw/daemon">Daemons</a>
              </li>
              <li routerLinkActive="active"
                  class="tc_submenuitem tc_submenuitem_rgw_users">
                <a i18n
                   class="dropdown-item"
                   routerLink="/rgw/user">Users</a>
              </li>
              <li routerLinkActive="active"
                  class="tc_submenuitem tc_submenuitem_rgw_buckets">
                <a i18n
                   class="dropdown-item"
                   routerLink="/rgw/bucket">Buckets</a>
              </li>
            </ul>
          </li>
        </ul>
        <!-- /.navbar-primary -->

        <ul class="nav navbar-nav navbar-utility">
          <li>
            <cd-language-selector class="oa-navbar"></cd-language-selector>
          </li>
          <li>
            <cd-task-manager class="oa-navbar"></cd-task-manager>
          </li>
          <li>
            <cd-notifications class="oa-navbar"></cd-notifications>
          </li>
          <li>
            <cd-dashboard-help class="oa-navbar"></cd-dashboard-help>
          </li>
          <li>
            <cd-administration class="oa-navbar"></cd-administration>
          </li>
          <li>
            <cd-identity class="oa-navbar"></cd-identity>
          </li>
        </ul>
        <!-- /.navbar-utility -->
      </div>
      <!-- /.navbar-collapse -->
    </nav>