<xf:title>{{ phrase('test_image_proxy') }}</xf:title>
<xf:description>{{ phrase('tool_helps_diagnose_errors_relating_to_image_proxy_system') }}</xf:description>

<xf:if is="$results">
	<xf:if is="$results.valid">
		<div class="blockMessage blockMessage--success blockMessage--iconic">{{ phrase('url_x_was_fetched_successfully', {'url': $url}) }}</div>
	<xf:else />
		<div class="blockMessage blockMessage--error blockMessage--iconic">
			{{ phrase('url_x_could_not_be_fetched_or_is_not_valid_image_error_y', {'url': $url, 'error': $results.error}) }}
		</div>
	</xf:if>
</xf:if>

<xf:form action="{{ link('tools/test-image-proxy') }}" class="block">
	<div class="block-container">
		<div class="block-body">
			<xf:textboxrow name="url" value="{$url}" type="url"
				label="{{ phrase('url') }}"
				dir="ltr" />
		</div>
		<xf:submitrow submit="{{ phrase('run_test') }}" />
	</div>
</xf:form>