
{{#content "title"}}
	{{task.name}} - {{simplify-url task.url}} ({{task.standard}})
{{/content}}

{{#added}}
	<div class="col-md-12 clearfix" data-test="alert">
		<div class="alert alert-success">
			<button aria-hidden="true" data-dismiss="alert" class="close" type="button">×</button>
			<strong>Whoop whoop!</strong>
			<p>Your new URL has been added.</p>
		</div>
	</div>
{{/added}}

{{#running}}
	<div class="col-md-12 clearfix" data-test="alert">
		<div class="alert alert-success">
			<button aria-hidden="true" data-dismiss="alert" class="close" type="button">×</button>
			<strong>New results incoming!</strong>
			<p>
				New results are being generated for this URL in the background.
				This can take up to a minute to complete.
			</p>
		</div>
	</div>
{{/running}}

{{> task-header}}

{{#if results}}
	
	{{#unless hasOneResult}}
		{{> graph}}
	{{/unless}}

	{{> result-selector}}

{{/if}}

{{#if mainResult}}
	{{> result}}
{{else}}
	<div class="col-md-12" data-test="alert">
		<div class="alert alert-info">
			<h4>There are no results to show</h4>
			<p>pa11y has not been run against this URL yet so there are no results to show.</p>
			<p><a href="{{task.hrefRun}}">Click here to generate results for this URL</a>.</p>
		</div>
	</div>
{{/if}}