{namespace i=TYPO3\CMS\Install\ViewHelpers}

<h4>{test.title}</h4>

<f:if condition="{test.message}">
	<f:render partial="Action/Common/StatusMessage" arguments="{message: test.message}" />
</f:if>

<f:if condition="{test.error}">
	<f:then>
		<f:render partial="Action/Common/StatusMessage" arguments="{message: test.error}"/>
	</f:then>
	<f:else>
		<div class="t3-install-displaytwinimageimages">
			<div class="row">
				<div class="col-xs-12 col-md-6">
					<h4>Reference</h4>
					<div class="bg-transparent-emulation">
						<img src="../../../../{test.referenceFile -> i:file.relativePath()}?{time}" />
					</div>
				</div>
				<div class="col-xs-12 col-md-6">
					<h4>Your system</h4>
					<f:if condition="{test.outputFile}">
						<f:then>
							<f:if condition="{i:file.exists(file:test.outputFile)}">
								<f:then>
									<div class="bg-transparent-emulation">
										<img src="../../../../{test.outputFile -> i:file.relativePath()}?{time}" />
									</div>
								</f:then>
								<f:else>
									<div class="typo3-message message-error" >
										<div class="header-container">
											<div class="message-header"><strong>No image</strong></div>
										</div>
										<div class="message-body">
											Your system generated no image, it was probably unable to write the file. Do you have a permission problem?
										</div>
									</div>
								</f:else>
							</f:if>
						</f:then>
						<f:else>
							<div class="typo3-message message-error" >
								<div class="header-container">
									<div class="message-header"><strong>No image</strong></div>
								</div>
								<div class="message-body">
									Your system generated no image at all. This is probably a misconfiguration.
								</div>
							</div>
						</f:else>
					</f:if>
				</div>
			</div>
		</div>

		<f:if condition="{test.command}">
			<div class="t3-install-displaytwinimagetextarea">
				{i:format.imageMagickCommands(commands:test.command) -> f:format.raw()}
			</div>
		</f:if>
	</f:else>
</f:if>

<p></p>
