]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: syntax changes from bootstrap 4 to 5
authorPedro Gonzalez Gomez <pegonzal@redhat.com>
Sat, 19 Nov 2022 12:29:43 +0000 (13:29 +0100)
committerPedro Gonzalez Gomez <pegonzal@redhat.com>
Tue, 20 Dec 2022 07:30:14 +0000 (08:30 +0100)
Signed-off-by: Pedro Gonzalez Gomez <pegonzal@redhat.com>
src/pybind/mgr/dashboard/frontend/src/app/ceph/new-dashboard/card/card.component.html
src/pybind/mgr/dashboard/frontend/src/app/ceph/new-dashboard/dashboard/dashboard.component.html

index 4183e1d766cdcb06e46681fe8740b66c9c543479..71cb870b9985c238b52f1270da194a3ccc68ec1e 100644 (file)
@@ -1,8 +1,8 @@
 <div class="card shadow-sm">
-  <h4 class="card-title mt-4 ml-4 mb-0">
+  <h4 class="card-title mt-4 ms-4 mb-0">
     {{ title }}
   </h4>
-  <div class="card-body pl-0 pr-0">
+  <div class="card-body ps-0 pe-0">
     <ng-content></ng-content>
   </div>
 </div>
index 671fa1c2b38d3c59e0863b61d269cb922d6944af..03f4e7eb1d5b16f543d79b1991b6f2bf2ea33c75 100644 (file)
@@ -3,7 +3,7 @@
     <cd-card title="Details"
              i18n-title
              class="col-sm-3 px-3">
-      <dl class="ml-4 mr-4">
+      <dl class="ms-4 me-4">
         <dt>FSID</dt>
         <dd>{{ detailsCardData.fsid }}</dd>
         <dt>Orchestror</dt>
     <cd-card title="Status"
              i18n-title
              class="col-sm-6 px-3">
-      <div class="d-flex ml-4 mr-4 mb-5"
+      <div class="d-flex ms-4 me-4 mb-5"
            *ngIf="healthData$ | async as healthData">
         <i *ngIf="healthData.health?.status"
            [ngClass]="[healthData.health.status | healthIcon, icons.large]"
            [ngStyle]="healthData.health.status | healthColor"
            [title]="healthData.health.status"></i>
-        <span class="ml-2 mt-n1"
+        <span class="ms-2 mt-n1"
               i18n>Cluster</span>
       </div>
       <section class="border-top mt-5"
                *ngIf="isAlertmanagerConfigured && (crticialActiveAlerts || warningActiveAlerts)">
-        <div class="d-flex flex-wrap ml-4 mr-4">
+        <div class="d-flex flex-wrap ms-4 me-4">
           <span class="pt-2"
                 i18n>Alerts</span>
           <!-- Potentially make widget component -->
-          <button class="btn btn-outline-danger rounded-pill ml-2"
+          <button class="btn btn-outline-danger rounded-pill ms-2"
                   [ngClass]="{'active': showAlerts && alertType === 'critical'}"
                   title="Danger"
                   (click)="toggleAlertsWindow('danger')"
@@ -42,7 +42,7 @@
             <span>{{ crticialActiveAlerts }}</span>
           </button>
 
-          <button class="btn btn-outline-warning rounded-pill ml-2"
+          <button class="btn btn-outline-warning rounded-pill ms-2"
                   [ngClass]="{'active': showAlerts && alertType === 'warning'}"
                   title="Warning"
                   (click)="toggleAlertsWindow('warning')"
@@ -66,7 +66,7 @@
              *ngIf="showAlerts">
           <hr class="mt-4">
           <ngx-simplebar [options]="simplebar">
-            <div class="card-body pl-0 pr-1 pt-1">
+            <div class="card-body ps-0 pe-1 pt-1">
               <ng-container *ngTemplateOutlet="alertsCard"></ng-container>
             </div>
           </ngx-simplebar>
@@ -77,7 +77,7 @@
     <cd-card title="Capacity"
              i18n-title
              class="col-sm-3 px-3">
-      <ng-container class="ml-4 mr-4"
+      <ng-container class="ms-4 me-4"
                     *ngIf="{osdSettings: osdSettings$ | async, capacity: capacity$ | async} as values">
         <ng-container *ngIf="values.osdSettings && values.capacity">
           <cd-dashboard-pie [data]="{max: values.capacity.total_bytes, current: values.capacity.total_used_raw_bytes}"
@@ -93,7 +93,7 @@
     <cd-card title="Inventory"
              i18n-title
              class="col-sm-3 px-3">
-      <div class="ml-4 mr-4">
+      <div class="ms-4 me-4">
         Text
       </div>
     </cd-card>
     <cd-card title="Capacity utilization"
              i18n-title
              class="col-sm-6 px-3">
-      <div class="ml-4 mr-4">
+      <div class="ms-4 me-4">
         Text
       </div>
     </cd-card>
     <cd-card title="Events"
              i18n-title
              class="col-sm-3 px-3">
-      <div class="ml-4 mr-4">
+      <div class="ms-4 me-4">
         Text
       </div>
     </cd-card>
             </span>
           </div>
           <div class="col-md-11">
-            <div class="card-body pl-0 pr-1 pt-1">
+            <div class="card-body ps-0 pe-1 pt-1">
               <h6 class="card-title bold">{{ alert.labels.alertname }}</h6>
-              <p class="card-text mr-3"
+              <p class="card-text me-3"
                  [innerHtml]="alert.annotations.summary"></p>
-              <p class="card-text text-muted mr-3">
+              <p class="card-text text-muted me-3">
                 <small class="date"
                        [title]="alert.startsAt | cdDate"
                        i18n>Active since: {{ alert.startsAt  | relativeDate }}</small>