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

<div class="block">
	<div class="block-container">
		<div class="block-body">
			<xf:datalist data-xf-init="responsive-data-list">
				<xf:datarow rowtype="header">
					<xf:cell colspan="2">{{ phrase('rejected_user') }}</xf:cell>
					<xf:cell>{{ phrase('date') }}</xf:cell>
					<xf:cell>{{ phrase('rejected_by') }}</xf:cell>
					<xf:cell class="dataList-cell--min">&nbsp;</xf:cell>
				</xf:datarow>

				<xf:foreach loop="$rejections" value="$rejection">
					<xf:datarow>
						<xf:cell class="dataList-cell--min dataList-cell--image dataList-cell--imageSmall"
							href="{{ link('users/edit', $rejection.User) }}">
							<xf:avatar user="$rejection.User" size="s" href="" />
						</xf:cell>
						<xf:cell>
							<div>
								<xf:username user="$rejection.User" href="{{ link('users/edit', $rejection.User) }}" />
							</div>
						</xf:cell>
						<xf:cell>
							<xf:date time="{$rejection.reject_date}" />
						</xf:cell>
						<xf:cell>
							<xf:if is="$rejection.reject_user_id">
								<xf:username user="$rejection.RejectUser" href="{{ link('users/edit', $rejection.RejectUser) }}" />
							<xf:else />
								{{ phrase('n_a') }}
							</xf:if>
						</xf:cell>
						<xf:action href="{{ link('logs/rejected-users', $rejection.User) }}" overlay="true">
							{{ phrase('view') }}
						</xf:action>
					</xf:datarow>
					<xf:else />
					<xf:datarow>
						<xf:cell colspan="5">{{ phrase('no_entries_have_been_logged') }}</xf:cell>
					</xf:datarow>
				</xf:foreach>
			</xf:datalist>
		</div>
		<div class="block-footer">
			<span class="block-footer-counter">{{ display_totals($rejections, $total) }}</span>
		</div>
	</div>
	<xf:pagenav page="{$page}" perpage="{$perPage}" total="{$total}"
		link="logs/rejected-users" params="{$linkFilters}"
		wrapperclass="block-outer block-outer--after" />
</div>
