<xf:if is="$posts is not empty">
	<xf:macro template="activity_summary_macros" name="outer_header"
		arg-title="{$title}" />

	<xf:foreach loop="$posts" value="$post">
		<xf:set var="$attribution">
			{{ $post.User ? $post.User.username : $post.username }} &middot; {{ phrase('thread:') }} <a href="{{ link('canonical:threads/post', $post.Thread, {'post_id': $post.post_id} ) }}">{$post.Thread.title}</a> &middot; {{ date_time($post.post_date) }}
		</xf:set>
		<xf:set var="$footer">
			{{ phrase('forum:') }} <a href="{{ link('canonical:forums', $post.Thread.Forum) }}">{$post.Thread.Forum.title}</a>
		</xf:set>
		<xf:set var="$footerOpposite">
			<a href="{{ link('canonical:threads/post', $post.Thread, {'post_id': $post.post_id}) }}" class="button button--link">{{ phrase('read_more') }}</a>
		</xf:set>

		<xf:macro template="activity_summary_macros" name="block"
			arg-attribution="{$attribution}"
			arg-content="{{ bb_code_type_snippet('emailHtml', $post.message, 'post', $post, 300) }}"
			arg-footer="{$footer}"
			arg-footerOpposite="{$footerOpposite}" />
	</xf:foreach>
</xf:if>