<{strip}>
<{* スレッド表示用テンプレート *}>

<{if empty($parents|smarty:nodefaults) && count($action.topics) > 0}>
	<{assign var="parents" value=$action.topics.0}>
	<{assign var="depth" value=0}>
<{/if}>

<{foreach from=$parents|smarty:nodefaults key=postID item=post}>
	<h6>
		<{"&nbsp;"|str_repeat:$depth}>
		<{include file = "bbs_mobile_subject.html"}>
	</h6>
	
	<{if !empty($action.topics.$postID|smarty:nodefaults)}>
		<{assign var="parents" value=$action.topics.$postID}>
		<{assign var="depth" value="`$depth+1`"}>
		<{include file = "bbs_mobile_thread.html"}>
		<{assign var="depth" value="`$depth-1`"}>
	<{/if}>
<{foreachelse}>
<{/foreach}>

<{/strip}>