Obsessing about styling
This commit is contained in:
parent
9c9b48695d
commit
04315817a2
@ -45,20 +45,20 @@
|
|||||||
<dt i18n>Type</dt>
|
<dt i18n>Type</dt>
|
||||||
<dd>{{status.database.type}}</dd>
|
<dd>{{status.database.type}}</dd>
|
||||||
<dt i18n>Status</dt>
|
<dt i18n>Status</dt>
|
||||||
<dd>
|
<dd class="d-flex align-items-center">
|
||||||
{{status.database.status}}
|
{{status.database.status}}
|
||||||
@if (status.database.status === 'OK') {
|
@if (status.database.status === 'OK') {
|
||||||
<i-bs name="check-circle-fill" class="text-primary ms-1" ngbPopover="{{status.database.url}}" triggers="mouseenter:mouseleave"></i-bs>
|
<i-bs name="check-circle-fill" class="text-primary ms-2 lh-1" ngbPopover="{{status.database.url}}" triggers="mouseenter:mouseleave"></i-bs>
|
||||||
} @else {
|
} @else {
|
||||||
<i-bs name="exclamation-triangle-fill" class="text-danger ms-1" ngbPopover="{{status.database.url}}: {{status.database.error}}" triggers="mouseenter:mouseleave"></i-bs>
|
<i-bs name="exclamation-triangle-fill" class="text-danger ms-2 lh-1" ngbPopover="{{status.database.url}}: {{status.database.error}}" triggers="mouseenter:mouseleave"></i-bs>
|
||||||
}
|
}
|
||||||
</dd>
|
</dd>
|
||||||
<dt i18n>Migration Status</dt>
|
<dt i18n>Migration Status</dt>
|
||||||
<dd>
|
<dd class="d-flex align-items-center">
|
||||||
@if (status.database.migration_status.unapplied_migrations.length === 0) {
|
@if (status.database.migration_status.unapplied_migrations.length === 0) {
|
||||||
<ng-container>Up to date</ng-container><i-bs name="check-circle-fill" class="text-primary ms-1" [ngbPopover]="migrationStatus" triggers="mouseenter:mouseleave"></i-bs>
|
<ng-container>Up to date</ng-container><i-bs name="check-circle-fill" class="text-primary ms-2 lh-1" [ngbPopover]="migrationStatus" triggers="mouseenter:mouseleave"></i-bs>
|
||||||
} @else {
|
} @else {
|
||||||
<ng-container>{{status.database.migration_status.unapplied_migrations.length}} Pending</ng-container><i-bs name="exclamation-triangle-fill" class="text-warning ms-1" [ngbPopover]="migrationStatus" triggers="mouseenter:mouseleave"></i-bs>
|
<ng-container>{{status.database.migration_status.unapplied_migrations.length}} Pending</ng-container><i-bs name="exclamation-triangle-fill" class="text-warning ms-2 lh-1" [ngbPopover]="migrationStatus" triggers="mouseenter:mouseleave"></i-bs>
|
||||||
}
|
}
|
||||||
<ng-template #migrationStatus>
|
<ng-template #migrationStatus>
|
||||||
<h6><ng-container i18n>Latest Migration</ng-container>:</h6> <span class="font-monospace small">{{status.database.migration_status.latest_migration}}</span>
|
<h6><ng-container i18n>Latest Migration</ng-container>:</h6> <span class="font-monospace small">{{status.database.migration_status.latest_migration}}</span>
|
||||||
@ -85,50 +85,50 @@
|
|||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<dl class="card-text">
|
<dl class="card-text">
|
||||||
<dt i18n>Redis Status</dt>
|
<dt i18n>Redis Status</dt>
|
||||||
<dd>
|
<dd class="d-flex align-items-center">
|
||||||
{{status.tasks.redis_status}}
|
{{status.tasks.redis_status}}
|
||||||
@if (status.tasks.redis_status === 'OK') {
|
@if (status.tasks.redis_status === 'OK') {
|
||||||
<i-bs name="check-circle-fill" class="text-primary ms-1" ngbPopover="{{status.tasks.redis_url}}" triggers="mouseenter:mouseleave"></i-bs>
|
<i-bs name="check-circle-fill" class="text-primary ms-2 lh-1" ngbPopover="{{status.tasks.redis_url}}" triggers="mouseenter:mouseleave"></i-bs>
|
||||||
} @else {
|
} @else {
|
||||||
<i-bs name="exclamation-triangle-fill" class="text-danger ms-1" ngbPopover="{{status.tasks.redis_url}}: {{status.tasks.redis_error}}" triggers="mouseenter:mouseleave"></i-bs>
|
<i-bs name="exclamation-triangle-fill" class="text-danger ms-2 lh-1" ngbPopover="{{status.tasks.redis_url}}: {{status.tasks.redis_error}}" triggers="mouseenter:mouseleave"></i-bs>
|
||||||
}
|
}
|
||||||
</dd>
|
</dd>
|
||||||
<dt i18n>Celery Status</dt>
|
<dt i18n>Celery Status</dt>
|
||||||
<dd>
|
<dd class="d-flex align-items-center">
|
||||||
{{status.tasks.celery_status}}
|
{{status.tasks.celery_status}}
|
||||||
@if (status.tasks.celery_status === 'OK') {
|
@if (status.tasks.celery_status === 'OK') {
|
||||||
<i-bs name="check-circle-fill" class="text-primary ms-1"></i-bs>
|
<i-bs name="check-circle-fill" class="text-primary ms-2 lh-1"></i-bs>
|
||||||
} @else {
|
} @else {
|
||||||
<i-bs name="exclamation-triangle-fill" class="text-danger ms-1"></i-bs>
|
<i-bs name="exclamation-triangle-fill" class="text-danger ms-2 lh-1"></i-bs>
|
||||||
}
|
}
|
||||||
</dd>
|
</dd>
|
||||||
<dt i18n>Search Index</dt>
|
<dt i18n>Search Index</dt>
|
||||||
<dd>
|
<dd class="d-flex align-items-center">
|
||||||
{{status.tasks.index_status}}
|
{{status.tasks.index_status}}
|
||||||
@if (status.tasks.index_status === 'OK') {
|
@if (status.tasks.index_status === 'OK') {
|
||||||
@if (isStale(status.tasks.index_last_modified)) {
|
@if (isStale(status.tasks.index_last_modified)) {
|
||||||
<i-bs name="exclamation-triangle-fill" class="text-warning ms-1" [ngbPopover]="indexStatus" triggers="mouseenter:mouseleave"></i-bs>
|
<i-bs name="exclamation-triangle-fill" class="text-warning ms-2 lh-1" [ngbPopover]="indexStatus" triggers="mouseenter:mouseleave"></i-bs>
|
||||||
} @else {
|
} @else {
|
||||||
<i-bs name="check-circle-fill" class="text-primary ms-1" [ngbPopover]="indexStatus" triggers="mouseenter:mouseleave"></i-bs>
|
<i-bs name="check-circle-fill" class="text-primary ms-2 lh-1" [ngbPopover]="indexStatus" triggers="mouseenter:mouseleave"></i-bs>
|
||||||
}
|
}
|
||||||
} @else {
|
} @else {
|
||||||
<i-bs name="exclamation-triangle-fill" class="text-danger ms-1" ngbPopover="{{status.tasks.index_error}}" triggers="mouseenter:mouseleave"></i-bs>
|
<i-bs name="exclamation-triangle-fill" class="text-danger ms-2 lh-1" ngbPopover="{{status.tasks.index_error}}" triggers="mouseenter:mouseleave"></i-bs>
|
||||||
}
|
}
|
||||||
</dd>
|
</dd>
|
||||||
<ng-template #indexStatus>
|
<ng-template #indexStatus>
|
||||||
<h6><ng-container i18n>Last Updated</ng-container>:</h6> <span class="font-monospace small">{{status.tasks.index_last_modified | customDate:'medium'}}</span>
|
<h6><ng-container i18n>Last Updated</ng-container>:</h6> <span class="font-monospace small">{{status.tasks.index_last_modified | customDate:'medium'}}</span>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
<dt i18n>Classifier</dt>
|
<dt i18n>Classifier</dt>
|
||||||
<dd>
|
<dd class="d-flex align-items-center">
|
||||||
{{status.tasks.classifier_status}}
|
{{status.tasks.classifier_status}}
|
||||||
@if (status.tasks.classifier_status === 'OK') {
|
@if (status.tasks.classifier_status === 'OK') {
|
||||||
@if (isStale(status.tasks.classifier_last_trained)) {
|
@if (isStale(status.tasks.classifier_last_trained)) {
|
||||||
<i-bs name="exclamation-triangle-fill" class="text-warning ms-1" [ngbPopover]="classifierStatus" triggers="mouseenter:mouseleave"></i-bs>
|
<i-bs name="exclamation-triangle-fill" class="text-warning ms-2 lh-1" [ngbPopover]="classifierStatus" triggers="mouseenter:mouseleave"></i-bs>
|
||||||
} @else {
|
} @else {
|
||||||
<i-bs name="check-circle-fill" class="text-primary ms-1" [ngbPopover]="classifierStatus" triggers="mouseenter:mouseleave"></i-bs>
|
<i-bs name="check-circle-fill" class="text-primary ms-2 lh-1" [ngbPopover]="classifierStatus" triggers="mouseenter:mouseleave"></i-bs>
|
||||||
}
|
}
|
||||||
} @else {
|
} @else {
|
||||||
<i-bs name="exclamation-triangle-fill" class="text-danger ms-1" ngbPopover="{{status.tasks.classifier_error}}" triggers="mouseenter:mouseleave"></i-bs>
|
<i-bs name="exclamation-triangle-fill" class="text-danger ms-2 lh-1" ngbPopover="{{status.tasks.classifier_error}}" triggers="mouseenter:mouseleave"></i-bs>
|
||||||
}
|
}
|
||||||
</dd>
|
</dd>
|
||||||
<ng-template #classifierStatus>
|
<ng-template #classifierStatus>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user