10 lines
612 B
PHP
10 lines
612 B
PHP
@props(['application'])
|
|
|
|
@if (method_exists($application, 'stoppedAfterRestartLimit') && $application->stoppedAfterRestartLimit())
|
|
@php($restartLimit = method_exists($application, 'restartLimitMaximum') ? $application->restartLimitMaximum() : ($application->max_restart_count ?? 0))
|
|
@php($displayRestartCount = max($application->restart_count ?? 0, $restartLimit))
|
|
<x-status-badge
|
|
status="Restart limit reached"
|
|
type="warning"
|
|
title="Container has crashed and MapleDeploy stopped it after {{ $displayRestartCount }} restart attempts." /> {{-- MapleDeploy branding --}}
|
|
@endif
|