<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" placeholder="{{ phrase('user_name...') }}" type="search" value="{{ $limitUser ? $limitUser.username : '' }}" class="input--inline" />
			<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 template="user_change_log" name="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>