<div id="SectionAuditTrail" class="insights_widget card w-100">
	<div class="card-header">
		<h5 class="card-title">Audit Trail</h5>
		<h6 class="card-subtitle mb-2 text-muted">20 most recent Audit Trail events</h6>
	</div>
	<div class="card-body overflow_container">
		{% if flags.has_audit_trail_entries %}
			<div class="overflow_inner">
				<table class="table table-hover table-sm mb-0">
					<thead><tr>
						<th>Date</th>
						<th>Message</th>
						<th>User</th>
						<th>IP</th>
					</tr></thead>
					<tbody>
					{% for audit_entry in vars.audit_trail_recent %}
						<tr>
							<td>{{ audit_entry.created_at }}</td>
							<td>{{ audit_entry.message }}</td>
							<td>{{ audit_entry.wp_username }}</td>
							<td>{{ audit_entry.ip }}</td>
						</tr>
					{% endfor %}
					</tbody>
				</table>
			</div>
			{#<a href="#" class="card-link">Card link</a>#}
			{#<a href="#" class="card-link">Another link</a>#}
		{% else %}
			<h6 class="card-subtitle mb-2 text-muted">No Audit Trail entries (yet).</h6>
		{% endif %}
	</div>
</div>