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

<xf:form action="{{ link('logs/user-change') }}" class="block">
	<div class="block-container">
		<div class="block-body block-row">
			<xf:textbox name="username" value="{{ $limitUser ? $limitUser.username : '' }}"
				ac="single" class="input--inline"
				placeholder="{{ phrase('user_name...') }}" />
			<xf:button type="submit">{{ phrase('show_changes') }}</xf:button>
		</div>
	</div>
</xf:form>

<xf:if is="$changesGrouped">
	<div class="block">
		<div class="block-container">
			<div class="block-body">
				<xf:macro id="user_change_log::change_log_list" arg-changesGrouped="{$changesGrouped}" />
			</div>
			<div class="block-footer">
				<span class="block-footer-counter">{{ display_totals($totalChanges, $total) }}</span>
			</div>
		</div>

		<xf:pagenav page="{$page}" perpage="{$perPage}" total="{$total}"
			link="logs/user-change" params="{$linkFilters}"
			wrapperclass="block-outer block-outer--after" />
	</div>
<xf:else />
	<div class="blockMessage">{{ phrase('no_changes_have_been_logged') }}</div>
</xf:if>