<xf:title>{{ phrase('xs_latest_activity', {'name': $user.username}) }}</xf:title>

<xf:head option="metaNoindex"><meta name="robots" content="noindex" /></xf:head>

<xf:if is="$restricted">
	<div class="blockMessage">
		{{ phrase('x_restricts_who_may_view_their_latest_activity', {'name': $user.username}) }}
	</div>
<xf:else />
	<div class="block">
		<div class="block-container">
			<xf:if is="$newsFeedItems is not empty">
				<ul class="block-body js-newsFeedTarget">
					<xf:foreach loop="$newsFeedItems" value="$item">
						<xf:macro id="news_feed_macros::feed_row" arg-item="{$item}" />
					</xf:foreach>
				</ul>
				<div class="block-footer js-newsFeedLoadMore">
					<span class="block-footer-controls"><xf:button href="{{ link('members/latest-activity', $user, {'before_id': $oldestItemId}) }}"
						rel="nofollow"
						data-xf-click="inserter"
						data-append=".js-newsFeedTarget"
						data-replace=".js-newsFeedLoadMore">
						{{ phrase('show_older_items') }}
					</xf:button></span>
				</div>
			<xf:elseif is="$beforeId" />
				<div class="block-body js-newsFeedTarget">
					<div class="block-row block-row--separated">{{ phrase('there_no_more_items_to_show') }}</div>
				</div>
			<xf:else />
				<div class="block-body js-newsFeedTarget">
					<div class="block-row">{{ phrase('news_feed_is_currently_empty') }}</div>
				</div>
			</xf:if>
		</div>

		<div class="block-outer block-outer--after">
			<div class="block-outer-opposite">
				<xf:showignored />
			</div>
		</div>
	</div>
</xf:if>