<tal:block metal:use-macro="python:here.getFormsTool().getForm('site_admin_template').macros['page']">

<h1 metal:fill-slot="title" i18n:translate="">Basket of validation</h1>

<tal:block metal:fill-slot="section">

<style>
	.validation-results .success {
		color: green;
	}
	.validation-results .error {
		color: red;
	}
</style>

<p i18n:translate="">
	This page presents reports on the items checked and validated.
	The types of items from the main sections that support this operation are:
</p>
<ul>
	<li i18n:translate="">Files</li>
	<li i18n:translate="">Documents</li>
	<li i18n:translate="">URLs</li>
	<li i18n:translate="">Pointers</li>
</ul>
<a tal:attributes="href string:${here/getSitePath}/admin_validation_tree_html"><strong i18n:translate="">Validation report (tree view)</strong></a>

<h2>Validation statistics</h2>

<tal:block tal:define="not_checked here/getNotCheckedObjects;
						checked_ok here/getCheckedOkObjects;
						checked_notok here/getCheckedNotOkObjects;">
<ul class="validation-results">
	<li><span i18n:translate="" tal:omit-tag="">Not yet checked items:</span> <strong tal:content="python:len(not_checked)" /></li>
	<li><span i18n:translate="" tal:omit-tag="">Items checked:</span> <strong tal:content="python:len(checked_ok)+len(checked_notok)" />
		<ul>
			<li class="success"><span i18n:translate="">Result OK:</span> <strong tal:content="python:len(checked_ok)" /></li>
			<li>
				<span class="error" i18n:translate="">Result not OK:</span> <strong class="error" tal:content="python:len(checked_notok)" />.
				<span i18n:translate="" tal:omit-tag="">See the list below:</span>
				<ul>
					<li tal:repeat="item checked_notok">
						<a tal:define="item_folder python:item.getParentNode()"
							tal:attributes="href string:${item_folder/absolute_url}/basketofvalidation_html"
							tal:content="item/title_or_id"></a>
						<a tal:condition="python:(not item.hasVersion()) and item.checkPermissionEditObject()" tal:attributes="href string:${item/absolute_url}/edit_html"><img src="misc_/Naaya/edit" alt="Edit" i18n:attributes="alt" /></a>
						<br /><strong i18n:translate="">Comment:</strong> <span tal:replace="item/validation_comment" />
					</li>
				</ul>
			</li>
		</ul>
	</li>
</ul>
</tal:block>

</tal:block>

</tal:block>
