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

<div class="block">
	<div class="block-container">
		<div class="block-body">
			<xf:formrow label="{{ phrase('user') }}">
				<a href="{{ link('users/edit', $entry.User) }}">{$entry.User.username}</a>
			</xf:formrow>
			<xf:if is="$entry.ip_address">
				<xf:formrow label="{{ phrase('ip_address') }}">
					<a href="{{ link_type('public', 'misc/ip-info', null, {'ip': $entry.ip_address|ip}) }}" target="_blank" class="u-ltr">{$entry.ip_address|ip}</a>
				</xf:formrow>
			</xf:if>
			<xf:formrow label="{{ phrase('date') }}">
				<xf:date time="{$entry.log_date}" />
			</xf:formrow>
			<xf:formrow label="{{ phrase('action') }}">
				{$entry.action_text}
			</xf:formrow>
			<xf:formrow label="{{ phrase('content') }}">
				<a href="{{ base_url($entry.content_url) }}">{$entry.content_title}</a>
				<div class="u-muted">{{ phrase('by_user_x', {'name': $entry.content_username ?: phrase('n_a') }) }}</div>
			</xf:formrow>
		</div>
	</div>
</div>