<{strip}>
<{* 記事本文画面用テンプレート *}>

<{assign var="post" value="`$action.post`"}>
<{include file = "bbs_mobile_subject.html"}>
<h6>
	<{if ($action.html_flag == _ON) }>
		<a href="?action=bbs_view_main_post_body&amp;block_id=<{$block_id}>&amp;bbs_id=<{$action.post.bbs_id}>&amp;post_id=<{$post.post_id}>&amp;html_flag=<{$smarty.const._OFF}><{$session_param}>">
			<{$lang._mobile_view_text|smarty:nodefaults}>
		</a>
	<{else}>
		<a href="?action=bbs_view_main_post_body&amp;block_id=<{$block_id}>&amp;bbs_id=<{$action.post.bbs_id}>&amp;post_id=<{$post.post_id}>&amp;html_flag=<{$smarty.const._ON}><{$session_param}>">
			<{$lang._mobile_view_html|smarty:nodefaults}>
		</a>
	<{/if}>
</h6>
<br />

<{if ($action.html_flag == _ON) }>
	<{$action.post.body|smarty:nodefaults|wysiwig_convert_url}>
<{else}>
	<{$action.post.body|html_to_text|smarty:nodefaults|nl2br}>
<{/if}>

<{if ($action.post.edit_authority || $action.post.reply_authority) }>
	<br /><br />
	<h4>
		<{if ($action.post.edit_authority) }>
			<a href="?action=bbs_view_main_post_edit&amp;block_id=<{$block_id}>&amp;bbs_id=<{$action.post.bbs_id}>&amp;post_id=<{$action.post.post_id}><{$session_param}>">
				<{$lang.bbs_edit_post|smarty:nodefaults}>
			</a>
			<{$lang._mobile_separator|smarty:nodefaults}>
			<a href="?action=bbs_view_mobile_post_delete&amp;block_id=<{$block_id}>&amp;bbs_id=<{$action.post.bbs_id}>&amp;post_id=<{$action.post.post_id}><{$session_param}>">
				<{$lang.bbs_delete_post|smarty:nodefaults}>
			</a>
			<{if ($action.post.reply_authority) }>
				<{$lang._mobile_separator|smarty:nodefaults}>
			<{/if}>
		<{/if}>
		<{if ($action.post.reply_authority) }>
			<a href="?action=bbs_view_mobile_post_reply&amp;block_id=<{$block_id}>&amp;bbs_id=<{$action.post.bbs_id}>&amp;post_id=<{$action.post.post_id}><{$session_param}>">
				<{$lang.bbs_reply|smarty:nodefaults}>
			</a>
		<{/if}>
	</h4>
<{/if}>

<{if ($action.post.vote_authority) }>
	<{if (!$action.post.edit_authority) }>
		<br />
	<{/if}>
	<form method="post" action=".<{$smarty.const.INDEX_FILE_NAME}>">
		<div>
			<input type="hidden" name="action" value="bbs_action_main_vote">
			<input type="hidden" name="block_id" value="<{$block_id}>">
			<input type="hidden" name="bbs_id" value="<{$action.post.bbs_id}>">
			<input type="hidden" name="post_id" value="<{$action.post.post_id}>">
			<input type="submit" name="vote" value="<{$lang.bbs_vote|smarty:nodefaults}>">
			<{$token_form|smarty:nodefaults}>
			<{$session_form|smarty:nodefaults}>
		</div>
	</form>
<{/if}>

<div style="text-align:right">
	<{if ($action.bbs.display == BBS_DISPLAY_TOPIC_VALUE || $action.bbs.display == BBS_DISPLAY_OLD_VALUE) }>
		<{assign var="prev_action" value="bbs_view_main_post_list&bbs_id=`$action.post.bbs_id`&post_id=`$action.post.post_id`"}>
	<{else}>
		<{assign var="prev_action" value="bbs_view_main_init"}>
	<{/if}>
	<a href="?action=<{$prev_action}>&amp;block_id=<{$block_id}><{$session_param}>">
		<{$lang._btn_prev_arrow|smarty:nodefaults}>
	</a>
</div>

<{/strip}>