health.component.html 1.5KB

1234567891011121314151617181920212223242526272829303132333435
  1. <div>
  2. <h2>
  3. <span id="health-page-heading" jhiTranslate="health.title">Health Checks</span>
  4. <button class="btn btn-primary float-right" (click)="refresh()">
  5. <fa-icon [icon]="'sync'"></fa-icon> <span jhiTranslate="health.refresh.button">Refresh</span>
  6. </button>
  7. </h2>
  8. <div class="table-responsive">
  9. <table id="healthCheck" class="table table-striped">
  10. <thead>
  11. <tr>
  12. <th jhiTranslate="health.table.service">Service Name</th>
  13. <th class="text-center" jhiTranslate="health.table.status">Status</th>
  14. <th class="text-center" jhiTranslate="health.details.details">Details</th>
  15. </tr>
  16. </thead>
  17. <tbody>
  18. <tr *ngFor="let health of healthData">
  19. <td>{{'health.indicator.' + baseName(health.name) | translate}} {{subSystemName(health.name)}}</td>
  20. <td class="text-center">
  21. <span class="badge" [ngClass]="getBadgeClass(health.status)" jhiTranslate="{{'health.status.' + health.status}}">
  22. {{health.status}}
  23. </span>
  24. </td>
  25. <td class="text-center">
  26. <a class="hand" (click)="showHealth(health)" *ngIf="health.details || health.error">
  27. <fa-icon [icon]="'eye'"></fa-icon>
  28. </a>
  29. </td>
  30. </tr>
  31. </tbody>
  32. </table>
  33. </div>
  34. </div>