@if (widget) {
@if (!cronjobStatus) { } @if (cronjobStatus) {
@if (cronjobStatus.total === 0) {
{{ t('No resource groups defined!') }}
}
{{ t('Pending') }} @if (cronjobStatus.pending > 0 && ( PermissionsService.hasPermissionObservable(['scmmodule', 'resourcegroups', 'index'])|async )) { {{ cronjobStatus.pending }} } @else { {{ cronjobStatus.pending }} } {{ t('Done') }} @if (cronjobStatus.success > 0 && ( PermissionsService.hasPermissionObservable(['scmmodule', 'resourcegroups', 'index'])|async )) { {{ cronjobStatus.success }} } @else { {{ cronjobStatus.success }} } {{ t('Failed') }} @if (cronjobStatus.failed > 0 && ( PermissionsService.hasPermissionObservable(['scmmodule', 'resourcegroups', 'index'])|async )) { {{ cronjobStatus.failed }} } @else { {{ cronjobStatus.failed }} }
{{ t('Total') }} @if (cronjobStatus.total > 0 && ( PermissionsService.hasPermissionObservable(['scmmodule', 'resourcegroups', 'index'])|async )) { {{ cronjobStatus.total }} } @else { {{ cronjobStatus.total }} }
@if (cronjobStatus.pending > 0 && ( PermissionsService.hasPermissionObservable(['scmmodule', 'resourcegroups', 'index'])|async )) { {{ cronjobStatus.pending }} } @else { {{ cronjobStatus.pending }} }
{{ t('Pending') }}
@if (cronjobStatus.success > 0 && ( PermissionsService.hasPermissionObservable(['scmmodule', 'resourcegroups', 'index'])|async )) { {{ cronjobStatus.success }} } @else { {{ cronjobStatus.success }} }
{{ t('Done') }}
@if (cronjobStatus.total > 0 && ( PermissionsService.hasPermissionObservable(['scmmodule', 'resourcegroups', 'index'])|async )) { {{ cronjobStatus.total }} } @else { {{ cronjobStatus.total }} }
{{ t('Total') }}
@if (cronjobStatus.failed > 0) { } @if (cronjobStatus.failed === 0 && cronjobStatus.pending === 0) { } @if (cronjobStatus.failed === 0 && cronjobStatus.pending > 0) { }
@for (deadlineItem of deadlines; track $index) {
@if (!deadlineItem.exceeded && !deadlineItem.timerangeArrives) {
    @for (resourcegroup of deadlineItem.resourcegroups; track $index) { @if (cronjobStatus.pendingIds.includes(resourcegroup.id)) {
  • {{ resourcegroup.name }}
  • } }
} @else if (!deadlineItem.exceeded && ( deadlineItem.timerangeArrives && cronjobStatus.pending > 0 )) { } @else if (!deadlineItem.exceeded && ( deadlineItem.timerangeArrives && cronjobStatus.pending === 0 )) {
    @for (resourcegroup of deadlineItem.resourcegroups; track $index) { @if (cronjobStatus.successIds.includes(resourcegroup.id)) {
  • {{ resourcegroup.name }}
  • } }
} @else if (deadlineItem.exceeded) { @if (cronjobStatus.failed > 0) {
    @for (resourcegroup of deadlineItem.resourcegroups; track $index) { @if (cronjobStatus.failedIds.includes(resourcegroup.id)) {
  • {{ resourcegroup.name }}
  • } }
} @else {
    @for (resourcegroup of deadlineItem.resourcegroups; track $index) { @if (cronjobStatus.successIds.includes(resourcegroup.id)) {
  • {{ resourcegroup.name }}
  • } }
} }
}
}
}