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

<div class="block">
	<div class="block-container">
		<div class="block-body block-row">
			<ul class="listInline listInline--bullet u-ltr">
				<li><span class="u-dimmed">{$entry.exception_type}:</span> {$entry.message}</li>
				<li class="u-dimmed">{$entry.filename}:{$entry.line}</li>
			</ul>
			<ul class="listInline listInline--bullet u-muted">
				<li class="u-muted">{{ phrase('generated_by:') }} {{ $entry.User ? '<a href="' . link('users/edit', $entry.User) . '">' . $entry.User.username . '</a>' : phrase('unknown_account') }}</li>
				<li>{{ date_time($entry.exception_date) }}</li>
			</ul>
		</div>

		<h3 class="block-minorHeader">{{ phrase('stack_trace') }}</h3>
		<div class="block-body block-body--contained block-row" dir="ltr">
			<pre>{$entry.trace_string}</pre>
		</div>

		<h3 class="block-minorHeader">{{ phrase('request_state') }}</h3>
		<div class="block-body block-body--contained block-row" dir="ltr">
			{{ dump_simple($entry.request_state) }}
		</div>

		<div class="block-footer">
			<span class="block-footer-controls"><xf:button href="{{ link('logs/server-errors/delete', $entry) }}" icon="delete" overlay="true" /></span>
		</div>
	</div>
</div>