<xf:title>{{ phrase('upgrade_check') }}</xf:title>

<xf:if is="$failed">
	<div class="blockMessage blockMessage--error">
		{{ phrase('last_upgrade_check_failed_see_log') }}
	</div>
</xf:if>

<xf:if is="$upgradeCheck">
	<xf:macro id="upgrade_check_macros::full_status"
		arg-upgradeCheck="{$upgradeCheck}"
		arg-showSuccess="{{ true }}"
	/>
</xf:if>

<xf:form action="{{ link('tools/upgrade-check') }}" class="block">
	<div class="block-container">
		<div class="block-body block-row">
			<xf:inforow rowtype="close">
				<xf:if is="$upgradeCheck.check_date">
					{{ phrase('last_upgrade_check_x', {'date': date_dynamic($upgradeCheck.check_date)}) }}
				<xf:else />
					{{ phrase('no_upgrade_check_has_been_performed') }}
				</xf:if>
			</xf:inforow>
		</div>
		<xf:submitrow submit="{{ phrase('check_now...') }}" rowtype="simple" />
	</div>
</xf:form>