{% set mal = vars.malware %}
<div class="row mt-3" id="ScanResultsMalware">
	<div class="col-12">

		<ul class="list-group">
			<li class="list-group-item">
				<span class="font-weight-bold">Understanding Malware</span>:
				<span>
					PHP Malware is a complex topic and scanning for malware is not simple.
					Please take a moment to read some of
					<a href="javascript:{}" class="font-weight-bold beacon-article"
					   data-beacon-article-format="sidebar"
					   data-beacon-article-id="{{ vars.beacon_help_id }}">
						the help around this topic</a>.
				</span>
			</li>

			{% if flags.mal_is_restricted %}
				<li class="list-group-item list-group-item-warning">
					<span class="font-weight-bold">{{ strings.file_integrity }}:</span>
					<span>{{ strings.mal_restricted }}</span>
				</li>
			{% else %}
				{% if mal.flags.has_malware %}
					<li class="list-group-item list-group-item-danger">
						<span class="font-weight-bold">{{ strings.file_integrity }}</span>
						<span>{{ strings.files_found }}</span>
					</li>
				{% else %}
					<li class="list-group-item list-group-item-success">
						<span class="font-weight-bold">{{ strings.file_integrity }}</span>
						<span>{{ strings.no_files }}</span>
					</li>
				{% endif %}
			{% endif %}
		</ul>
	</div>

	<div class="col-12">
		<div class="row mt-3">
			{% if mal.flags.has_malware %}
				<div class="col">
					<table id="table_id-malware"
						   class="table table-striped table-bordered" style="width: 100%;"></table>
				</div>
				<script>
					jQuery( document ).ready( function () {
						jQuery( '#table_id-malware' ).icwpWpsfScanTableActions(
							{
								'type': 'malware',
								'file': 'malware',
								'ajax': {
									'scanresults_action':{{ ajax.scanresults_action|raw }},
								},
								'datatables_init': {{ vars.datatables_init|raw }}
							}
						);
					} );
				</script>
			{% endif %}
		</div>
	</div>

</div>