<xf:title>{{ phrase('spam_trigger_log') }}</xf:title>

<xf:if is="$entries is not empty">
	<div class="block">
		<div class="block-container">
			<div class="block-body">
				<xf:datalist>
					<xf:foreach loop="$entries" value="$entry">
						<xf:datarow
							label="{{ $entry.User ? $entry.User.username : phrase('unknown_account') }} - {$entry.details}"
							href="{{ link('logs/spam-trigger', $entry) }}"
							overlay="true">
							<xf:explain>
								<ul class="listInline listInline--bullet">
									<li>{{ $entry.result == 'moderated' ? phrase('moderated') : phrase('rejected') }}</li>
									<li><xf:date time="$entry.log_date" /></li>
									<li>{{ phrase('content:') }} {{ $xf.app.getContentTypePhrase($entry.content_type) ?: $entry.content_type }}</li>
								</ul>
							</xf:explain>
						</xf:datarow>
					</xf:foreach>
				</xf:datalist>
			</div>
			<div class="block-footer">
				<span class="block-footer-counter">{{ display_totals($entries, $total) }}</span>
			</div>
		</div>
		<xf:pagenav page="{$page}" perpage="{$perPage}" total="{$total}"
			link="logs/spam-trigger"
			wrapperclass="block-outer block-outer--after" />
	</div>
<xf:else />
	<div class="blockMessage">{{ phrase('no_entries_have_been_logged') }}</div>
</xf:if>