
<ul class="list-unstyled clearfix crunch-bottom">
	<li class="col-md-4 col-sm-6 task-card add-task">
		{{#if readonly}}
			{{! TODO PERRY: make this look disabled }}
			<span class="well task-card-link crunch-bottom">
				<p class="h3 crunch">Add new URL</p>
				<p class="supersize-me crunch">+</p>
			</span>
		{{else}}
			<a class="well task-card-link crunch-bottom" data-role="add-task" href="/new" data-test="add-task">
				<p class="h3 crunch">Add new URL</p>
				<p class="supersize-me crunch">+</p>
			</a>
		{{/if}}
	</li>
	{{#each tasks}}
		<li class="col-md-4 col-sm-6 task-card" data-test="task">
			<a class="well task-card-link crunch-bottom" title="Details for URL {{simplify-url url}}" href="{{href}}">
				<p class="h3">{{name}}</p>
				<p class="h5">({{standard}})</p>
				{{#if lastResult}}
				<ul class="clearfix list-unstyled floated-list task-stats">
					{{#lastResult}}
						<li class="danger" title="Number of errors ({{count.error}})">{{count.error}}<span class="stat-type">Errors</span></li>
						<li class="warning" title="Number of warnings ({{count.warning}})">{{count.warning}}<span class="stat-type">Warnings</span></li>
						<li class="info last" title="Number of notices ({{count.notice}})">{{count.notice}}<span class="stat-type">Notices</span></li>
					{{/lastResult}}
				</ul>
				Last run {{date-format lastResult.date format="DD MMM YYYY"}}
				{{else}}
					<p class="no-results">No results</p>
				{{/if}}
			</a>
			{{#unless ../readonly}}
				<a title="Delete this URL" class="delete-button" href="{{hrefDelete}}"><span class="sr-only">Delete </span><span class="glyphicon glyphicon-remove"></span></a>
			{{/unless}}
		</li>
	{{/each}}
</ul>
