{{#if allocation.nextAllocation}}
{{reschedule-event-row
label="Next Allocation"
allocation=allocation.nextAllocation
time=allocation.nextAllocation.modifyTime}}
{{/if}}
{{#if allocation.hasStoppedRescheduling}}
-
{{x-icon "warning" class="is-warning is-text"}} Nomad has stopped attempting to reschedule this allocation.
{{/if}}
{{#if (and allocation.followUpEvaluation.waitUntil (not allocation.nextAllocation))}}
-
{{x-icon "clock" class="is-info is-text"}} Nomad will attempt to reschedule
{{moment-from-now allocation.followUpEvaluation.waitUntil interval=1000}}
{{/if}}
{{reschedule-event-row
allocation=allocation
linkToAllocation=false
time=allocation.modifyTime}}
{{#each (reverse allocation.rescheduleEvents) as |event|}}
{{reschedule-event-row
allocationId=event.previousAllocationId
time=event.time}}
{{/each}}