<mail:subject>
	{{ phrase('conversation_join_email_subject', {
		'username': $sender.username,
		'title': $conversation.title
	}) }}
</mail:subject>

{{ phrase('conversation_join_email_html', {
	'receiver': $receiver.username,
	'sender': $sender.username,
	'board': '<a href="' . link('canonical:index') . '">' . $xf.options.boardTitle . '</a>'
}) }}

<h2><a href="{{ link('canonical:conversations/unread', $conversation) }}">{$conversation.title}</a></h2>

<xf:if is="$xf.options.emailConversationIncludeMessage">
	<div class="message">{{ bb_code_type('emailHtml', $message.message, 'conversation_message', $message) }}</div>
</xf:if>

<table cellpadding="10" cellspacing="0" border="0" width="100%" class="linkBar">
<tr>
	<td>
		<a href="{{ link('canonical:conversations', $conversation) }}" class="button">{{ phrase('view_this_conversation') }}</a>
	</td>
	<td align="{{ $xf.isRtl ? 'left' : 'right' }}">
		<a href="{{ link('canonical:conversations') }}" class="buttonFake">{{ phrase('view_all_your_conversations') }}</a>
	</td>
</tr>
</table>

<xf:macro template="conversation_macros" name="footer" arg-conversation="{$conversation}" />