@if (!isReadonly()) { } @if (config && config.useScroll) { } @if (config && !config.useScroll) { } @if (widget && config) { } @if (config && widget) { {{ t('Alert status') }} @switch (config.state) { @case ('recovery') { {{ t('Up') }} } @case ('down') { {{ t('Down') }} } @case ('unreachable') { {{ t('Unreachable') }} } } {{ t('Period: Last') }} {{ config.not_older_than }} @switch (config.not_older_than_unit) { @case ('MINUTE') { {{ t('minute(s)') }} } @case ('HOUR') { {{ t('hour(s)') }} } @case ('DAY') { {{ t('day(s)') }} } } }
@if (animationStateShowContent) { @if (!hostAlerts) { } @if (hostAlerts && config) { @if (hostAlerts) { @for (hostAlert of hostAlerts.all_notifications; track $index) { } }
{{ t('State') }} {{ t('Host') }} {{ t('Last date') }} {{ t('Count') }}
@if (PermissionsService.hasPermissionObservable(['notifications', 'index'])|async) { {{ hostAlert.Host.hostname }} } @else { {{ hostAlert.Host.name }} } {{ hostAlert.NotificationHost.start_time }} {{ hostAlert.count }}
} @if (hostAlerts && hostAlerts.all_notifications.length === 0) { } @if (hostAlerts && hostAlerts.scroll) { } }
@if (animationStateShowConfig) { @if (config && widget) {
{{ t('Host status') }}
{{ t('Not older than interval') }}
  • {{ t('minutes') }}
  • {{ t('hours') }}
  • {{ t('days') }}
{{ t('Priority') }}
} }